//===----------------------------------------------------------------------===//
//
// This source file is part of the Soto for AWS open source project
//
// Copyright (c) 2017-2021 the Soto project authors
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
// See CONTRIBUTORS.txt for the list of Soto project authors
//
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//

// THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto/tree/main/CodeGenerator. DO NOT EDIT.

import Foundation
import SotoCore

extension MediaConvert {
    // MARK: Enums

    public enum AacAudioDescriptionBroadcasterMix: String, CustomStringConvertible, Codable {
        case broadcasterMixedAd = "BROADCASTER_MIXED_AD"
        case normal = "NORMAL"
        public var description: String { return self.rawValue }
    }

    public enum AacCodecProfile: String, CustomStringConvertible, Codable {
        case hev1 = "HEV1"
        case hev2 = "HEV2"
        case lc = "LC"
        public var description: String { return self.rawValue }
    }

    public enum AacCodingMode: String, CustomStringConvertible, Codable {
        case adReceiverMix = "AD_RECEIVER_MIX"
        case codingMode10 = "CODING_MODE_1_0"
        case codingMode11 = "CODING_MODE_1_1"
        case codingMode20 = "CODING_MODE_2_0"
        case codingMode51 = "CODING_MODE_5_1"
        public var description: String { return self.rawValue }
    }

    public enum AacRateControlMode: String, CustomStringConvertible, Codable {
        case cbr = "CBR"
        case vbr = "VBR"
        public var description: String { return self.rawValue }
    }

    public enum AacRawFormat: String, CustomStringConvertible, Codable {
        case latmLoas = "LATM_LOAS"
        case none = "NONE"
        public var description: String { return self.rawValue }
    }

    public enum AacSpecification: String, CustomStringConvertible, Codable {
        case mpeg2 = "MPEG2"
        case mpeg4 = "MPEG4"
        public var description: String { return self.rawValue }
    }

    public enum AacVbrQuality: String, CustomStringConvertible, Codable {
        case high = "HIGH"
        case low = "LOW"
        case mediumHigh = "MEDIUM_HIGH"
        case mediumLow = "MEDIUM_LOW"
        public var description: String { return self.rawValue }
    }

    public enum Ac3BitstreamMode: String, CustomStringConvertible, Codable {
        case commentary = "COMMENTARY"
        case completeMain = "COMPLETE_MAIN"
        case dialogue = "DIALOGUE"
        case emergency = "EMERGENCY"
        case hearingImpaired = "HEARING_IMPAIRED"
        case musicAndEffects = "MUSIC_AND_EFFECTS"
        case visuallyImpaired = "VISUALLY_IMPAIRED"
        case voiceOver = "VOICE_OVER"
        public var description: String { return self.rawValue }
    }

    public enum Ac3CodingMode: String, CustomStringConvertible, Codable {
        case codingMode10 = "CODING_MODE_1_0"
        case codingMode11 = "CODING_MODE_1_1"
        case codingMode20 = "CODING_MODE_2_0"
        case codingMode32Lfe = "CODING_MODE_3_2_LFE"
        public var description: String { return self.rawValue }
    }

    public enum Ac3DynamicRangeCompressionProfile: String, CustomStringConvertible, Codable {
        case filmStandard = "FILM_STANDARD"
        case none = "NONE"
        public var description: String { return self.rawValue }
    }

    public enum Ac3LfeFilter: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum Ac3MetadataControl: String, CustomStringConvertible, Codable {
        case followInput = "FOLLOW_INPUT"
        case useConfigured = "USE_CONFIGURED"
        public var description: String { return self.rawValue }
    }

    public enum AccelerationMode: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        case preferred = "PREFERRED"
        public var description: String { return self.rawValue }
    }

    public enum AccelerationStatus: String, CustomStringConvertible, Codable {
        case accelerated = "ACCELERATED"
        case inProgress = "IN_PROGRESS"
        case notAccelerated = "NOT_ACCELERATED"
        case notApplicable = "NOT_APPLICABLE"
        public var description: String { return self.rawValue }
    }

    public enum AfdSignaling: String, CustomStringConvertible, Codable {
        case auto = "AUTO"
        case fixed = "FIXED"
        case none = "NONE"
        public var description: String { return self.rawValue }
    }

    public enum AlphaBehavior: String, CustomStringConvertible, Codable {
        case discard = "DISCARD"
        case remapToLuma = "REMAP_TO_LUMA"
        public var description: String { return self.rawValue }
    }

    public enum AncillaryConvert608To708: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case upconvert = "UPCONVERT"
        public var description: String { return self.rawValue }
    }

    public enum AncillaryTerminateCaptions: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case endOfInput = "END_OF_INPUT"
        public var description: String { return self.rawValue }
    }

    public enum AntiAlias: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum AudioChannelTag: String, CustomStringConvertible, Codable {
        case c = "C"
        case cs = "CS"
        case l = "L"
        case lc = "LC"
        case lfe = "LFE"
        case ls = "LS"
        case lsd = "LSD"
        case r = "R"
        case rc = "RC"
        case rs = "RS"
        case rsd = "RSD"
        case tcs = "TCS"
        case vhc = "VHC"
        case vhl = "VHL"
        case vhr = "VHR"
        public var description: String { return self.rawValue }
    }

    public enum AudioCodec: String, CustomStringConvertible, Codable {
        case aac = "AAC"
        case ac3 = "AC3"
        case aiff = "AIFF"
        case eac3 = "EAC3"
        case eac3Atmos = "EAC3_ATMOS"
        case mp2 = "MP2"
        case mp3 = "MP3"
        case opus = "OPUS"
        case passthrough = "PASSTHROUGH"
        case vorbis = "VORBIS"
        case wav = "WAV"
        public var description: String { return self.rawValue }
    }

    public enum AudioDefaultSelection: String, CustomStringConvertible, Codable {
        case `default` = "DEFAULT"
        case notDefault = "NOT_DEFAULT"
        public var description: String { return self.rawValue }
    }

    public enum AudioLanguageCodeControl: String, CustomStringConvertible, Codable {
        case followInput = "FOLLOW_INPUT"
        case useConfigured = "USE_CONFIGURED"
        public var description: String { return self.rawValue }
    }

    public enum AudioNormalizationAlgorithm: String, CustomStringConvertible, Codable {
        case ituBs17701 = "ITU_BS_1770_1"
        case ituBs17702 = "ITU_BS_1770_2"
        case ituBs17703 = "ITU_BS_1770_3"
        case ituBs17704 = "ITU_BS_1770_4"
        public var description: String { return self.rawValue }
    }

    public enum AudioNormalizationAlgorithmControl: String, CustomStringConvertible, Codable {
        case correctAudio = "CORRECT_AUDIO"
        case measureOnly = "MEASURE_ONLY"
        public var description: String { return self.rawValue }
    }

    public enum AudioNormalizationLoudnessLogging: String, CustomStringConvertible, Codable {
        case dontLog = "DONT_LOG"
        case log = "LOG"
        public var description: String { return self.rawValue }
    }

    public enum AudioNormalizationPeakCalculation: String, CustomStringConvertible, Codable {
        case none = "NONE"
        case truePeak = "TRUE_PEAK"
        public var description: String { return self.rawValue }
    }

    public enum AudioSelectorType: String, CustomStringConvertible, Codable {
        case languageCode = "LANGUAGE_CODE"
        case pid = "PID"
        case track = "TRACK"
        public var description: String { return self.rawValue }
    }

    public enum AudioTypeControl: String, CustomStringConvertible, Codable {
        case followInput = "FOLLOW_INPUT"
        case useConfigured = "USE_CONFIGURED"
        public var description: String { return self.rawValue }
    }

    public enum Av1AdaptiveQuantization: String, CustomStringConvertible, Codable {
        case high = "HIGH"
        case higher = "HIGHER"
        case low = "LOW"
        case max = "MAX"
        case medium = "MEDIUM"
        case off = "OFF"
        public var description: String { return self.rawValue }
    }

    public enum Av1FramerateControl: String, CustomStringConvertible, Codable {
        case initializeFromSource = "INITIALIZE_FROM_SOURCE"
        case specified = "SPECIFIED"
        public var description: String { return self.rawValue }
    }

    public enum Av1FramerateConversionAlgorithm: String, CustomStringConvertible, Codable {
        case duplicateDrop = "DUPLICATE_DROP"
        case frameformer = "FRAMEFORMER"
        case interpolate = "INTERPOLATE"
        public var description: String { return self.rawValue }
    }

    public enum Av1RateControlMode: String, CustomStringConvertible, Codable {
        case qvbr = "QVBR"
        public var description: String { return self.rawValue }
    }

    public enum Av1SpatialAdaptiveQuantization: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum AvcIntraClass: String, CustomStringConvertible, Codable {
        case class100 = "CLASS_100"
        case class200 = "CLASS_200"
        case class4K2K = "CLASS_4K_2K"
        case class50 = "CLASS_50"
        public var description: String { return self.rawValue }
    }

    public enum AvcIntraFramerateControl: String, CustomStringConvertible, Codable {
        case initializeFromSource = "INITIALIZE_FROM_SOURCE"
        case specified = "SPECIFIED"
        public var description: String { return self.rawValue }
    }

    public enum AvcIntraFramerateConversionAlgorithm: String, CustomStringConvertible, Codable {
        case duplicateDrop = "DUPLICATE_DROP"
        case frameformer = "FRAMEFORMER"
        case interpolate = "INTERPOLATE"
        public var description: String { return self.rawValue }
    }

    public enum AvcIntraInterlaceMode: String, CustomStringConvertible, Codable {
        case bottomField = "BOTTOM_FIELD"
        case followBottomField = "FOLLOW_BOTTOM_FIELD"
        case followTopField = "FOLLOW_TOP_FIELD"
        case progressive = "PROGRESSIVE"
        case topField = "TOP_FIELD"
        public var description: String { return self.rawValue }
    }

    public enum AvcIntraScanTypeConversionMode: String, CustomStringConvertible, Codable {
        case interlaced = "INTERLACED"
        case interlacedOptimize = "INTERLACED_OPTIMIZE"
        public var description: String { return self.rawValue }
    }

    public enum AvcIntraSlowPal: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum AvcIntraTelecine: String, CustomStringConvertible, Codable {
        case hard = "HARD"
        case none = "NONE"
        public var description: String { return self.rawValue }
    }

    public enum AvcIntraUhdQualityTuningLevel: String, CustomStringConvertible, Codable {
        case multiPass = "MULTI_PASS"
        case singlePass = "SINGLE_PASS"
        public var description: String { return self.rawValue }
    }

    public enum BillingTagsSource: String, CustomStringConvertible, Codable {
        case job = "JOB"
        case jobTemplate = "JOB_TEMPLATE"
        case preset = "PRESET"
        case queue = "QUEUE"
        public var description: String { return self.rawValue }
    }

    public enum BurninSubtitleAlignment: String, CustomStringConvertible, Codable {
        case centered = "CENTERED"
        case left = "LEFT"
        public var description: String { return self.rawValue }
    }

    public enum BurninSubtitleBackgroundColor: String, CustomStringConvertible, Codable {
        case black = "BLACK"
        case none = "NONE"
        case white = "WHITE"
        public var description: String { return self.rawValue }
    }

    public enum BurninSubtitleFontColor: String, CustomStringConvertible, Codable {
        case black = "BLACK"
        case blue = "BLUE"
        case green = "GREEN"
        case red = "RED"
        case white = "WHITE"
        case yellow = "YELLOW"
        public var description: String { return self.rawValue }
    }

    public enum BurninSubtitleOutlineColor: String, CustomStringConvertible, Codable {
        case black = "BLACK"
        case blue = "BLUE"
        case green = "GREEN"
        case red = "RED"
        case white = "WHITE"
        case yellow = "YELLOW"
        public var description: String { return self.rawValue }
    }

    public enum BurninSubtitleShadowColor: String, CustomStringConvertible, Codable {
        case black = "BLACK"
        case none = "NONE"
        case white = "WHITE"
        public var description: String { return self.rawValue }
    }

    public enum BurninSubtitleTeletextSpacing: String, CustomStringConvertible, Codable {
        case fixedGrid = "FIXED_GRID"
        case proportional = "PROPORTIONAL"
        public var description: String { return self.rawValue }
    }

    public enum CaptionDestinationType: String, CustomStringConvertible, Codable {
        case burnIn = "BURN_IN"
        case dvbSub = "DVB_SUB"
        case embedded = "EMBEDDED"
        case embeddedPlusScte20 = "EMBEDDED_PLUS_SCTE20"
        case imsc = "IMSC"
        case scc = "SCC"
        case scte20PlusEmbedded = "SCTE20_PLUS_EMBEDDED"
        case smi = "SMI"
        case srt = "SRT"
        case teletext = "TELETEXT"
        case ttml = "TTML"
        case webvtt = "WEBVTT"
        public var description: String { return self.rawValue }
    }

    public enum CaptionSourceType: String, CustomStringConvertible, Codable {
        case ancillary = "ANCILLARY"
        case dvbSub = "DVB_SUB"
        case embedded = "EMBEDDED"
        case imsc = "IMSC"
        case nullSource = "NULL_SOURCE"
        case scc = "SCC"
        case scte20 = "SCTE20"
        case smi = "SMI"
        case smpteTt = "SMPTE_TT"
        case srt = "SRT"
        case stl = "STL"
        case teletext = "TELETEXT"
        case ttml = "TTML"
        public var description: String { return self.rawValue }
    }

    public enum CmafClientCache: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum CmafCodecSpecification: String, CustomStringConvertible, Codable {
        case rfc4281 = "RFC_4281"
        case rfc6381 = "RFC_6381"
        public var description: String { return self.rawValue }
    }

    public enum CmafEncryptionType: String, CustomStringConvertible, Codable {
        case aesCtr = "AES_CTR"
        case sampleAes = "SAMPLE_AES"
        public var description: String { return self.rawValue }
    }

    public enum CmafInitializationVectorInManifest: String, CustomStringConvertible, Codable {
        case exclude = "EXCLUDE"
        case include = "INCLUDE"
        public var description: String { return self.rawValue }
    }

    public enum CmafKeyProviderType: String, CustomStringConvertible, Codable {
        case speke = "SPEKE"
        case staticKey = "STATIC_KEY"
        public var description: String { return self.rawValue }
    }

    public enum CmafManifestCompression: String, CustomStringConvertible, Codable {
        case gzip = "GZIP"
        case none = "NONE"
        public var description: String { return self.rawValue }
    }

    public enum CmafManifestDurationFormat: String, CustomStringConvertible, Codable {
        case floatingPoint = "FLOATING_POINT"
        case integer = "INTEGER"
        public var description: String { return self.rawValue }
    }

    public enum CmafMpdProfile: String, CustomStringConvertible, Codable {
        case mainProfile = "MAIN_PROFILE"
        case onDemandProfile = "ON_DEMAND_PROFILE"
        public var description: String { return self.rawValue }
    }

    public enum CmafSegmentControl: String, CustomStringConvertible, Codable {
        case segmentedFiles = "SEGMENTED_FILES"
        case singleFile = "SINGLE_FILE"
        public var description: String { return self.rawValue }
    }

    public enum CmafStreamInfResolution: String, CustomStringConvertible, Codable {
        case exclude = "EXCLUDE"
        case include = "INCLUDE"
        public var description: String { return self.rawValue }
    }

    public enum CmafWriteDASHManifest: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum CmafWriteHLSManifest: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum CmafWriteSegmentTimelineInRepresentation: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum CmfcAudioDuration: String, CustomStringConvertible, Codable {
        case defaultCodecDuration = "DEFAULT_CODEC_DURATION"
        case matchVideoDuration = "MATCH_VIDEO_DURATION"
        public var description: String { return self.rawValue }
    }

    public enum CmfcIFrameOnlyManifest: String, CustomStringConvertible, Codable {
        case exclude = "EXCLUDE"
        case include = "INCLUDE"
        public var description: String { return self.rawValue }
    }

    public enum CmfcScte35Esam: String, CustomStringConvertible, Codable {
        case insert = "INSERT"
        case none = "NONE"
        public var description: String { return self.rawValue }
    }

    public enum CmfcScte35Source: String, CustomStringConvertible, Codable {
        case none = "NONE"
        case passthrough = "PASSTHROUGH"
        public var description: String { return self.rawValue }
    }

    public enum ColorMetadata: String, CustomStringConvertible, Codable {
        case ignore = "IGNORE"
        case insert = "INSERT"
        public var description: String { return self.rawValue }
    }

    public enum ColorSpace: String, CustomStringConvertible, Codable {
        case follow = "FOLLOW"
        case hdr10 = "HDR10"
        case hlg2020 = "HLG_2020"
        case rec601 = "REC_601"
        case rec709 = "REC_709"
        public var description: String { return self.rawValue }
    }

    public enum ColorSpaceConversion: String, CustomStringConvertible, Codable {
        case force601 = "FORCE_601"
        case force709 = "FORCE_709"
        case forceHdr10 = "FORCE_HDR10"
        case forceHlg2020 = "FORCE_HLG_2020"
        case none = "NONE"
        public var description: String { return self.rawValue }
    }

    public enum ColorSpaceUsage: String, CustomStringConvertible, Codable {
        case fallback = "FALLBACK"
        case force = "FORCE"
        public var description: String { return self.rawValue }
    }

    public enum Commitment: String, CustomStringConvertible, Codable {
        case oneYear = "ONE_YEAR"
        public var description: String { return self.rawValue }
    }

    public enum ContainerType: String, CustomStringConvertible, Codable {
        case cmfc = "CMFC"
        case f4v = "F4V"
        case ismv = "ISMV"
        case m2ts = "M2TS"
        case m3u8 = "M3U8"
        case mov = "MOV"
        case mp4 = "MP4"
        case mpd = "MPD"
        case mxf = "MXF"
        case raw = "RAW"
        case webm = "WEBM"
        public var description: String { return self.rawValue }
    }

    public enum DashIsoHbbtvCompliance: String, CustomStringConvertible, Codable {
        case hbbtv15 = "HBBTV_1_5"
        case none = "NONE"
        public var description: String { return self.rawValue }
    }

    public enum DashIsoMpdProfile: String, CustomStringConvertible, Codable {
        case mainProfile = "MAIN_PROFILE"
        case onDemandProfile = "ON_DEMAND_PROFILE"
        public var description: String { return self.rawValue }
    }

    public enum DashIsoPlaybackDeviceCompatibility: String, CustomStringConvertible, Codable {
        case cencV1 = "CENC_V1"
        case unencryptedSei = "UNENCRYPTED_SEI"
        public var description: String { return self.rawValue }
    }

    public enum DashIsoSegmentControl: String, CustomStringConvertible, Codable {
        case segmentedFiles = "SEGMENTED_FILES"
        case singleFile = "SINGLE_FILE"
        public var description: String { return self.rawValue }
    }

    public enum DashIsoWriteSegmentTimelineInRepresentation: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum DecryptionMode: String, CustomStringConvertible, Codable {
        case aesCbc = "AES_CBC"
        case aesCtr = "AES_CTR"
        case aesGcm = "AES_GCM"
        public var description: String { return self.rawValue }
    }

    public enum DeinterlaceAlgorithm: String, CustomStringConvertible, Codable {
        case blend = "BLEND"
        case blendTicker = "BLEND_TICKER"
        case interpolate = "INTERPOLATE"
        case interpolateTicker = "INTERPOLATE_TICKER"
        public var description: String { return self.rawValue }
    }

    public enum DeinterlacerControl: String, CustomStringConvertible, Codable {
        case forceAllFrames = "FORCE_ALL_FRAMES"
        case normal = "NORMAL"
        public var description: String { return self.rawValue }
    }

    public enum DeinterlacerMode: String, CustomStringConvertible, Codable {
        case adaptive = "ADAPTIVE"
        case deinterlace = "DEINTERLACE"
        case inverseTelecine = "INVERSE_TELECINE"
        public var description: String { return self.rawValue }
    }

    public enum DescribeEndpointsMode: String, CustomStringConvertible, Codable {
        case `default` = "DEFAULT"
        case getOnly = "GET_ONLY"
        public var description: String { return self.rawValue }
    }

    public enum DolbyVisionLevel6Mode: String, CustomStringConvertible, Codable {
        case passthrough = "PASSTHROUGH"
        case recalculate = "RECALCULATE"
        case specify = "SPECIFY"
        public var description: String { return self.rawValue }
    }

    public enum DolbyVisionProfile: String, CustomStringConvertible, Codable {
        case profile5 = "PROFILE_5"
        public var description: String { return self.rawValue }
    }

    public enum DropFrameTimecode: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum DvbSubtitleAlignment: String, CustomStringConvertible, Codable {
        case centered = "CENTERED"
        case left = "LEFT"
        public var description: String { return self.rawValue }
    }

    public enum DvbSubtitleBackgroundColor: String, CustomStringConvertible, Codable {
        case black = "BLACK"
        case none = "NONE"
        case white = "WHITE"
        public var description: String { return self.rawValue }
    }

    public enum DvbSubtitleFontColor: String, CustomStringConvertible, Codable {
        case black = "BLACK"
        case blue = "BLUE"
        case green = "GREEN"
        case red = "RED"
        case white = "WHITE"
        case yellow = "YELLOW"
        public var description: String { return self.rawValue }
    }

    public enum DvbSubtitleOutlineColor: String, CustomStringConvertible, Codable {
        case black = "BLACK"
        case blue = "BLUE"
        case green = "GREEN"
        case red = "RED"
        case white = "WHITE"
        case yellow = "YELLOW"
        public var description: String { return self.rawValue }
    }

    public enum DvbSubtitleShadowColor: String, CustomStringConvertible, Codable {
        case black = "BLACK"
        case none = "NONE"
        case white = "WHITE"
        public var description: String { return self.rawValue }
    }

    public enum DvbSubtitleTeletextSpacing: String, CustomStringConvertible, Codable {
        case fixedGrid = "FIXED_GRID"
        case proportional = "PROPORTIONAL"
        public var description: String { return self.rawValue }
    }

    public enum DvbSubtitlingType: String, CustomStringConvertible, Codable {
        case hearingImpaired = "HEARING_IMPAIRED"
        case standard = "STANDARD"
        public var description: String { return self.rawValue }
    }

    public enum Eac3AtmosBitstreamMode: String, CustomStringConvertible, Codable {
        case completeMain = "COMPLETE_MAIN"
        public var description: String { return self.rawValue }
    }

    public enum Eac3AtmosCodingMode: String, CustomStringConvertible, Codable {
        case codingMode916 = "CODING_MODE_9_1_6"
        public var description: String { return self.rawValue }
    }

    public enum Eac3AtmosDialogueIntelligence: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum Eac3AtmosDynamicRangeCompressionLine: String, CustomStringConvertible, Codable {
        case filmLight = "FILM_LIGHT"
        case filmStandard = "FILM_STANDARD"
        case musicLight = "MUSIC_LIGHT"
        case musicStandard = "MUSIC_STANDARD"
        case none = "NONE"
        case speech = "SPEECH"
        public var description: String { return self.rawValue }
    }

    public enum Eac3AtmosDynamicRangeCompressionRf: String, CustomStringConvertible, Codable {
        case filmLight = "FILM_LIGHT"
        case filmStandard = "FILM_STANDARD"
        case musicLight = "MUSIC_LIGHT"
        case musicStandard = "MUSIC_STANDARD"
        case none = "NONE"
        case speech = "SPEECH"
        public var description: String { return self.rawValue }
    }

    public enum Eac3AtmosMeteringMode: String, CustomStringConvertible, Codable {
        case ituBs17701 = "ITU_BS_1770_1"
        case ituBs17702 = "ITU_BS_1770_2"
        case ituBs17703 = "ITU_BS_1770_3"
        case ituBs17704 = "ITU_BS_1770_4"
        case leqA = "LEQ_A"
        public var description: String { return self.rawValue }
    }

    public enum Eac3AtmosStereoDownmix: String, CustomStringConvertible, Codable {
        case dpl2 = "DPL2"
        case notIndicated = "NOT_INDICATED"
        case stereo = "STEREO"
        case surround = "SURROUND"
        public var description: String { return self.rawValue }
    }

    public enum Eac3AtmosSurroundExMode: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        case notIndicated = "NOT_INDICATED"
        public var description: String { return self.rawValue }
    }

    public enum Eac3AttenuationControl: String, CustomStringConvertible, Codable {
        case attenuate3Db = "ATTENUATE_3_DB"
        case none = "NONE"
        public var description: String { return self.rawValue }
    }

    public enum Eac3BitstreamMode: String, CustomStringConvertible, Codable {
        case commentary = "COMMENTARY"
        case completeMain = "COMPLETE_MAIN"
        case emergency = "EMERGENCY"
        case hearingImpaired = "HEARING_IMPAIRED"
        case visuallyImpaired = "VISUALLY_IMPAIRED"
        public var description: String { return self.rawValue }
    }

    public enum Eac3CodingMode: String, CustomStringConvertible, Codable {
        case codingMode10 = "CODING_MODE_1_0"
        case codingMode20 = "CODING_MODE_2_0"
        case codingMode32 = "CODING_MODE_3_2"
        public var description: String { return self.rawValue }
    }

    public enum Eac3DcFilter: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum Eac3DynamicRangeCompressionLine: String, CustomStringConvertible, Codable {
        case filmLight = "FILM_LIGHT"
        case filmStandard = "FILM_STANDARD"
        case musicLight = "MUSIC_LIGHT"
        case musicStandard = "MUSIC_STANDARD"
        case none = "NONE"
        case speech = "SPEECH"
        public var description: String { return self.rawValue }
    }

    public enum Eac3DynamicRangeCompressionRf: String, CustomStringConvertible, Codable {
        case filmLight = "FILM_LIGHT"
        case filmStandard = "FILM_STANDARD"
        case musicLight = "MUSIC_LIGHT"
        case musicStandard = "MUSIC_STANDARD"
        case none = "NONE"
        case speech = "SPEECH"
        public var description: String { return self.rawValue }
    }

    public enum Eac3LfeControl: String, CustomStringConvertible, Codable {
        case lfe = "LFE"
        case noLfe = "NO_LFE"
        public var description: String { return self.rawValue }
    }

    public enum Eac3LfeFilter: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum Eac3MetadataControl: String, CustomStringConvertible, Codable {
        case followInput = "FOLLOW_INPUT"
        case useConfigured = "USE_CONFIGURED"
        public var description: String { return self.rawValue }
    }

    public enum Eac3PassthroughControl: String, CustomStringConvertible, Codable {
        case noPassthrough = "NO_PASSTHROUGH"
        case whenPossible = "WHEN_POSSIBLE"
        public var description: String { return self.rawValue }
    }

    public enum Eac3PhaseControl: String, CustomStringConvertible, Codable {
        case noShift = "NO_SHIFT"
        case shift90Degrees = "SHIFT_90_DEGREES"
        public var description: String { return self.rawValue }
    }

    public enum Eac3StereoDownmix: String, CustomStringConvertible, Codable {
        case dpl2 = "DPL2"
        case loRo = "LO_RO"
        case ltRt = "LT_RT"
        case notIndicated = "NOT_INDICATED"
        public var description: String { return self.rawValue }
    }

    public enum Eac3SurroundExMode: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        case notIndicated = "NOT_INDICATED"
        public var description: String { return self.rawValue }
    }

    public enum Eac3SurroundMode: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        case notIndicated = "NOT_INDICATED"
        public var description: String { return self.rawValue }
    }

    public enum EmbeddedConvert608To708: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case upconvert = "UPCONVERT"
        public var description: String { return self.rawValue }
    }

    public enum EmbeddedTerminateCaptions: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case endOfInput = "END_OF_INPUT"
        public var description: String { return self.rawValue }
    }

    public enum F4vMoovPlacement: String, CustomStringConvertible, Codable {
        case normal = "NORMAL"
        case progressiveDownload = "PROGRESSIVE_DOWNLOAD"
        public var description: String { return self.rawValue }
    }

    public enum FileSourceConvert608To708: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case upconvert = "UPCONVERT"
        public var description: String { return self.rawValue }
    }

    public enum FontScript: String, CustomStringConvertible, Codable {
        case automatic = "AUTOMATIC"
        case hans = "HANS"
        case hant = "HANT"
        public var description: String { return self.rawValue }
    }

    public enum H264AdaptiveQuantization: String, CustomStringConvertible, Codable {
        case auto = "AUTO"
        case high = "HIGH"
        case higher = "HIGHER"
        case low = "LOW"
        case max = "MAX"
        case medium = "MEDIUM"
        case off = "OFF"
        public var description: String { return self.rawValue }
    }

    public enum H264CodecLevel: String, CustomStringConvertible, Codable {
        case auto = "AUTO"
        case level1 = "LEVEL_1"
        case level11 = "LEVEL_1_1"
        case level12 = "LEVEL_1_2"
        case level13 = "LEVEL_1_3"
        case level2 = "LEVEL_2"
        case level21 = "LEVEL_2_1"
        case level22 = "LEVEL_2_2"
        case level3 = "LEVEL_3"
        case level31 = "LEVEL_3_1"
        case level32 = "LEVEL_3_2"
        case level4 = "LEVEL_4"
        case level41 = "LEVEL_4_1"
        case level42 = "LEVEL_4_2"
        case level5 = "LEVEL_5"
        case level51 = "LEVEL_5_1"
        case level52 = "LEVEL_5_2"
        public var description: String { return self.rawValue }
    }

    public enum H264CodecProfile: String, CustomStringConvertible, Codable {
        case baseline = "BASELINE"
        case high = "HIGH"
        case high10Bit = "HIGH_10BIT"
        case high422 = "HIGH_422"
        case high42210Bit = "HIGH_422_10BIT"
        case main = "MAIN"
        public var description: String { return self.rawValue }
    }

    public enum H264DynamicSubGop: String, CustomStringConvertible, Codable {
        case adaptive = "ADAPTIVE"
        case `static` = "STATIC"
        public var description: String { return self.rawValue }
    }

    public enum H264EntropyEncoding: String, CustomStringConvertible, Codable {
        case cabac = "CABAC"
        case cavlc = "CAVLC"
        public var description: String { return self.rawValue }
    }

    public enum H264FieldEncoding: String, CustomStringConvertible, Codable {
        case forceField = "FORCE_FIELD"
        case paff = "PAFF"
        public var description: String { return self.rawValue }
    }

    public enum H264FlickerAdaptiveQuantization: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum H264FramerateControl: String, CustomStringConvertible, Codable {
        case initializeFromSource = "INITIALIZE_FROM_SOURCE"
        case specified = "SPECIFIED"
        public var description: String { return self.rawValue }
    }

    public enum H264FramerateConversionAlgorithm: String, CustomStringConvertible, Codable {
        case duplicateDrop = "DUPLICATE_DROP"
        case frameformer = "FRAMEFORMER"
        case interpolate = "INTERPOLATE"
        public var description: String { return self.rawValue }
    }

    public enum H264GopBReference: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum H264GopSizeUnits: String, CustomStringConvertible, Codable {
        case frames = "FRAMES"
        case seconds = "SECONDS"
        public var description: String { return self.rawValue }
    }

    public enum H264InterlaceMode: String, CustomStringConvertible, Codable {
        case bottomField = "BOTTOM_FIELD"
        case followBottomField = "FOLLOW_BOTTOM_FIELD"
        case followTopField = "FOLLOW_TOP_FIELD"
        case progressive = "PROGRESSIVE"
        case topField = "TOP_FIELD"
        public var description: String { return self.rawValue }
    }

    public enum H264ParControl: String, CustomStringConvertible, Codable {
        case initializeFromSource = "INITIALIZE_FROM_SOURCE"
        case specified = "SPECIFIED"
        public var description: String { return self.rawValue }
    }

    public enum H264QualityTuningLevel: String, CustomStringConvertible, Codable {
        case multiPassHq = "MULTI_PASS_HQ"
        case singlePass = "SINGLE_PASS"
        case singlePassHq = "SINGLE_PASS_HQ"
        public var description: String { return self.rawValue }
    }

    public enum H264RateControlMode: String, CustomStringConvertible, Codable {
        case cbr = "CBR"
        case qvbr = "QVBR"
        case vbr = "VBR"
        public var description: String { return self.rawValue }
    }

    public enum H264RepeatPps: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum H264ScanTypeConversionMode: String, CustomStringConvertible, Codable {
        case interlaced = "INTERLACED"
        case interlacedOptimize = "INTERLACED_OPTIMIZE"
        public var description: String { return self.rawValue }
    }

    public enum H264SceneChangeDetect: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        case transitionDetection = "TRANSITION_DETECTION"
        public var description: String { return self.rawValue }
    }

    public enum H264SlowPal: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum H264SpatialAdaptiveQuantization: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum H264Syntax: String, CustomStringConvertible, Codable {
        case `default` = "DEFAULT"
        case rp2027 = "RP2027"
        public var description: String { return self.rawValue }
    }

    public enum H264Telecine: String, CustomStringConvertible, Codable {
        case hard = "HARD"
        case none = "NONE"
        case soft = "SOFT"
        public var description: String { return self.rawValue }
    }

    public enum H264TemporalAdaptiveQuantization: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum H264UnregisteredSeiTimecode: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum H265AdaptiveQuantization: String, CustomStringConvertible, Codable {
        case high = "HIGH"
        case higher = "HIGHER"
        case low = "LOW"
        case max = "MAX"
        case medium = "MEDIUM"
        case off = "OFF"
        public var description: String { return self.rawValue }
    }

    public enum H265AlternateTransferFunctionSei: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum H265CodecLevel: String, CustomStringConvertible, Codable {
        case auto = "AUTO"
        case level1 = "LEVEL_1"
        case level2 = "LEVEL_2"
        case level21 = "LEVEL_2_1"
        case level3 = "LEVEL_3"
        case level31 = "LEVEL_3_1"
        case level4 = "LEVEL_4"
        case level41 = "LEVEL_4_1"
        case level5 = "LEVEL_5"
        case level51 = "LEVEL_5_1"
        case level52 = "LEVEL_5_2"
        case level6 = "LEVEL_6"
        case level61 = "LEVEL_6_1"
        case level62 = "LEVEL_6_2"
        public var description: String { return self.rawValue }
    }

    public enum H265CodecProfile: String, CustomStringConvertible, Codable {
        case main10High = "MAIN10_HIGH"
        case main10Main = "MAIN10_MAIN"
        case main42210BitHigh = "MAIN_422_10BIT_HIGH"
        case main42210BitMain = "MAIN_422_10BIT_MAIN"
        case main4228BitHigh = "MAIN_422_8BIT_HIGH"
        case main4228BitMain = "MAIN_422_8BIT_MAIN"
        case mainHigh = "MAIN_HIGH"
        case mainMain = "MAIN_MAIN"
        public var description: String { return self.rawValue }
    }

    public enum H265DynamicSubGop: String, CustomStringConvertible, Codable {
        case adaptive = "ADAPTIVE"
        case `static` = "STATIC"
        public var description: String { return self.rawValue }
    }

    public enum H265FlickerAdaptiveQuantization: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum H265FramerateControl: String, CustomStringConvertible, Codable {
        case initializeFromSource = "INITIALIZE_FROM_SOURCE"
        case specified = "SPECIFIED"
        public var description: String { return self.rawValue }
    }

    public enum H265FramerateConversionAlgorithm: String, CustomStringConvertible, Codable {
        case duplicateDrop = "DUPLICATE_DROP"
        case frameformer = "FRAMEFORMER"
        case interpolate = "INTERPOLATE"
        public var description: String { return self.rawValue }
    }

    public enum H265GopBReference: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum H265GopSizeUnits: String, CustomStringConvertible, Codable {
        case frames = "FRAMES"
        case seconds = "SECONDS"
        public var description: String { return self.rawValue }
    }

    public enum H265InterlaceMode: String, CustomStringConvertible, Codable {
        case bottomField = "BOTTOM_FIELD"
        case followBottomField = "FOLLOW_BOTTOM_FIELD"
        case followTopField = "FOLLOW_TOP_FIELD"
        case progressive = "PROGRESSIVE"
        case topField = "TOP_FIELD"
        public var description: String { return self.rawValue }
    }

    public enum H265ParControl: String, CustomStringConvertible, Codable {
        case initializeFromSource = "INITIALIZE_FROM_SOURCE"
        case specified = "SPECIFIED"
        public var description: String { return self.rawValue }
    }

    public enum H265QualityTuningLevel: String, CustomStringConvertible, Codable {
        case multiPassHq = "MULTI_PASS_HQ"
        case singlePass = "SINGLE_PASS"
        case singlePassHq = "SINGLE_PASS_HQ"
        public var description: String { return self.rawValue }
    }

    public enum H265RateControlMode: String, CustomStringConvertible, Codable {
        case cbr = "CBR"
        case qvbr = "QVBR"
        case vbr = "VBR"
        public var description: String { return self.rawValue }
    }

    public enum H265SampleAdaptiveOffsetFilterMode: String, CustomStringConvertible, Codable {
        case adaptive = "ADAPTIVE"
        case `default` = "DEFAULT"
        case off = "OFF"
        public var description: String { return self.rawValue }
    }

    public enum H265ScanTypeConversionMode: String, CustomStringConvertible, Codable {
        case interlaced = "INTERLACED"
        case interlacedOptimize = "INTERLACED_OPTIMIZE"
        public var description: String { return self.rawValue }
    }

    public enum H265SceneChangeDetect: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        case transitionDetection = "TRANSITION_DETECTION"
        public var description: String { return self.rawValue }
    }

    public enum H265SlowPal: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum H265SpatialAdaptiveQuantization: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum H265Telecine: String, CustomStringConvertible, Codable {
        case hard = "HARD"
        case none = "NONE"
        case soft = "SOFT"
        public var description: String { return self.rawValue }
    }

    public enum H265TemporalAdaptiveQuantization: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum H265TemporalIds: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum H265Tiles: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum H265UnregisteredSeiTimecode: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum H265WriteMp4PackagingType: String, CustomStringConvertible, Codable {
        case hev1 = "HEV1"
        case hvc1 = "HVC1"
        public var description: String { return self.rawValue }
    }

    public enum HlsAdMarkers: String, CustomStringConvertible, Codable {
        case elemental = "ELEMENTAL"
        case elementalScte35 = "ELEMENTAL_SCTE35"
        public var description: String { return self.rawValue }
    }

    public enum HlsAudioOnlyContainer: String, CustomStringConvertible, Codable {
        case automatic = "AUTOMATIC"
        case m2ts = "M2TS"
        public var description: String { return self.rawValue }
    }

    public enum HlsAudioOnlyHeader: String, CustomStringConvertible, Codable {
        case exclude = "EXCLUDE"
        case include = "INCLUDE"
        public var description: String { return self.rawValue }
    }

    public enum HlsAudioTrackType: String, CustomStringConvertible, Codable {
        case alternateAudioAutoSelect = "ALTERNATE_AUDIO_AUTO_SELECT"
        case alternateAudioAutoSelectDefault = "ALTERNATE_AUDIO_AUTO_SELECT_DEFAULT"
        case alternateAudioNotAutoSelect = "ALTERNATE_AUDIO_NOT_AUTO_SELECT"
        case audioOnlyVariantStream = "AUDIO_ONLY_VARIANT_STREAM"
        public var description: String { return self.rawValue }
    }

    public enum HlsCaptionLanguageSetting: String, CustomStringConvertible, Codable {
        case insert = "INSERT"
        case none = "NONE"
        case omit = "OMIT"
        public var description: String { return self.rawValue }
    }

    public enum HlsClientCache: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum HlsCodecSpecification: String, CustomStringConvertible, Codable {
        case rfc4281 = "RFC_4281"
        case rfc6381 = "RFC_6381"
        public var description: String { return self.rawValue }
    }

    public enum HlsDirectoryStructure: String, CustomStringConvertible, Codable {
        case singleDirectory = "SINGLE_DIRECTORY"
        case subdirectoryPerStream = "SUBDIRECTORY_PER_STREAM"
        public var description: String { return self.rawValue }
    }

    public enum HlsEncryptionType: String, CustomStringConvertible, Codable {
        case aes128 = "AES128"
        case sampleAes = "SAMPLE_AES"
        public var description: String { return self.rawValue }
    }

    public enum HlsIFrameOnlyManifest: String, CustomStringConvertible, Codable {
        case exclude = "EXCLUDE"
        case include = "INCLUDE"
        public var description: String { return self.rawValue }
    }

    public enum HlsInitializationVectorInManifest: String, CustomStringConvertible, Codable {
        case exclude = "EXCLUDE"
        case include = "INCLUDE"
        public var description: String { return self.rawValue }
    }

    public enum HlsKeyProviderType: String, CustomStringConvertible, Codable {
        case speke = "SPEKE"
        case staticKey = "STATIC_KEY"
        public var description: String { return self.rawValue }
    }

    public enum HlsManifestCompression: String, CustomStringConvertible, Codable {
        case gzip = "GZIP"
        case none = "NONE"
        public var description: String { return self.rawValue }
    }

    public enum HlsManifestDurationFormat: String, CustomStringConvertible, Codable {
        case floatingPoint = "FLOATING_POINT"
        case integer = "INTEGER"
        public var description: String { return self.rawValue }
    }

    public enum HlsOfflineEncrypted: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum HlsOutputSelection: String, CustomStringConvertible, Codable {
        case manifestsAndSegments = "MANIFESTS_AND_SEGMENTS"
        case segmentsOnly = "SEGMENTS_ONLY"
        public var description: String { return self.rawValue }
    }

    public enum HlsProgramDateTime: String, CustomStringConvertible, Codable {
        case exclude = "EXCLUDE"
        case include = "INCLUDE"
        public var description: String { return self.rawValue }
    }

    public enum HlsSegmentControl: String, CustomStringConvertible, Codable {
        case segmentedFiles = "SEGMENTED_FILES"
        case singleFile = "SINGLE_FILE"
        public var description: String { return self.rawValue }
    }

    public enum HlsStreamInfResolution: String, CustomStringConvertible, Codable {
        case exclude = "EXCLUDE"
        case include = "INCLUDE"
        public var description: String { return self.rawValue }
    }

    public enum HlsTimedMetadataId3Frame: String, CustomStringConvertible, Codable {
        case none = "NONE"
        case priv = "PRIV"
        case tdrl = "TDRL"
        public var description: String { return self.rawValue }
    }

    public enum ImscStylePassthrough: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum InputDeblockFilter: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum InputDenoiseFilter: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum InputFilterEnable: String, CustomStringConvertible, Codable {
        case auto = "AUTO"
        case disable = "DISABLE"
        case force = "FORCE"
        public var description: String { return self.rawValue }
    }

    public enum InputPsiControl: String, CustomStringConvertible, Codable {
        case ignorePsi = "IGNORE_PSI"
        case usePsi = "USE_PSI"
        public var description: String { return self.rawValue }
    }

    public enum InputRotate: String, CustomStringConvertible, Codable {
        case auto = "AUTO"
        case degree0 = "DEGREE_0"
        case degrees180 = "DEGREES_180"
        case degrees270 = "DEGREES_270"
        case degrees90 = "DEGREES_90"
        public var description: String { return self.rawValue }
    }

    public enum InputScanType: String, CustomStringConvertible, Codable {
        case auto = "AUTO"
        case psf = "PSF"
        public var description: String { return self.rawValue }
    }

    public enum InputTimecodeSource: String, CustomStringConvertible, Codable {
        case embedded = "EMBEDDED"
        case specifiedstart = "SPECIFIEDSTART"
        case zerobased = "ZEROBASED"
        public var description: String { return self.rawValue }
    }

    public enum JobPhase: String, CustomStringConvertible, Codable {
        case probing = "PROBING"
        case transcoding = "TRANSCODING"
        case uploading = "UPLOADING"
        public var description: String { return self.rawValue }
    }

    public enum JobStatus: String, CustomStringConvertible, Codable {
        case canceled = "CANCELED"
        case complete = "COMPLETE"
        case error = "ERROR"
        case progressing = "PROGRESSING"
        case submitted = "SUBMITTED"
        public var description: String { return self.rawValue }
    }

    public enum JobTemplateListBy: String, CustomStringConvertible, Codable {
        case creationDate = "CREATION_DATE"
        case name = "NAME"
        case system = "SYSTEM"
        public var description: String { return self.rawValue }
    }

    public enum LanguageCode: String, CustomStringConvertible, Codable {
        case aar = "AAR"
        case abk = "ABK"
        case afr = "AFR"
        case aka = "AKA"
        case amh = "AMH"
        case ara = "ARA"
        case arg = "ARG"
        case asm = "ASM"
        case ava = "AVA"
        case ave = "AVE"
        case aym = "AYM"
        case aze = "AZE"
        case bak = "BAK"
        case bam = "BAM"
        case bel = "BEL"
        case ben = "BEN"
        case bih = "BIH"
        case bis = "BIS"
        case bod = "BOD"
        case bos = "BOS"
        case bre = "BRE"
        case bul = "BUL"
        case cat = "CAT"
        case ces = "CES"
        case cha = "CHA"
        case che = "CHE"
        case chu = "CHU"
        case chv = "CHV"
        case cor = "COR"
        case cos = "COS"
        case cre = "CRE"
        case cym = "CYM"
        case dan = "DAN"
        case deu = "DEU"
        case div = "DIV"
        case dzo = "DZO"
        case ell = "ELL"
        case eng = "ENG"
        case enm = "ENM"
        case epo = "EPO"
        case est = "EST"
        case eus = "EUS"
        case ewe = "EWE"
        case fao = "FAO"
        case fas = "FAS"
        case fij = "FIJ"
        case fin = "FIN"
        case fra = "FRA"
        case frm = "FRM"
        case fry = "FRY"
        case ful = "FUL"
        case ger = "GER"
        case gla = "GLA"
        case gle = "GLE"
        case glg = "GLG"
        case glv = "GLV"
        case grn = "GRN"
        case guj = "GUJ"
        case hat = "HAT"
        case hau = "HAU"
        case heb = "HEB"
        case her = "HER"
        case hin = "HIN"
        case hmo = "HMO"
        case hrv = "HRV"
        case hun = "HUN"
        case hye = "HYE"
        case ibo = "IBO"
        case ido = "IDO"
        case iii = "III"
        case iku = "IKU"
        case ile = "ILE"
        case ina = "INA"
        case ind = "IND"
        case ipk = "IPK"
        case isl = "ISL"
        case ita = "ITA"
        case jav = "JAV"
        case jpn = "JPN"
        case kal = "KAL"
        case kan = "KAN"
        case kas = "KAS"
        case kat = "KAT"
        case kau = "KAU"
        case kaz = "KAZ"
        case khm = "KHM"
        case kik = "KIK"
        case kin = "KIN"
        case kir = "KIR"
        case kom = "KOM"
        case kon = "KON"
        case kor = "KOR"
        case kua = "KUA"
        case kur = "KUR"
        case lao = "LAO"
        case lat = "LAT"
        case lav = "LAV"
        case lim = "LIM"
        case lin = "LIN"
        case lit = "LIT"
        case ltz = "LTZ"
        case lub = "LUB"
        case lug = "LUG"
        case mah = "MAH"
        case mal = "MAL"
        case mar = "MAR"
        case mkd = "MKD"
        case mlg = "MLG"
        case mlt = "MLT"
        case mon = "MON"
        case mri = "MRI"
        case msa = "MSA"
        case mya = "MYA"
        case nau = "NAU"
        case nav = "NAV"
        case nbl = "NBL"
        case nde = "NDE"
        case ndo = "NDO"
        case nep = "NEP"
        case nld = "NLD"
        case nno = "NNO"
        case nob = "NOB"
        case nor = "NOR"
        case nya = "NYA"
        case oci = "OCI"
        case oji = "OJI"
        case ori = "ORI"
        case orj = "ORJ"
        case orm = "ORM"
        case oss = "OSS"
        case pan = "PAN"
        case pli = "PLI"
        case pol = "POL"
        case por = "POR"
        case pus = "PUS"
        case qaa = "QAA"
        case qpc = "QPC"
        case que = "QUE"
        case roh = "ROH"
        case ron = "RON"
        case run = "RUN"
        case rus = "RUS"
        case sag = "SAG"
        case san = "SAN"
        case sin = "SIN"
        case slk = "SLK"
        case slv = "SLV"
        case sme = "SME"
        case smo = "SMO"
        case sna = "SNA"
        case snd = "SND"
        case som = "SOM"
        case sot = "SOT"
        case spa = "SPA"
        case sqi = "SQI"
        case srb = "SRB"
        case srd = "SRD"
        case ssw = "SSW"
        case sun = "SUN"
        case swa = "SWA"
        case swe = "SWE"
        case tah = "TAH"
        case tam = "TAM"
        case tat = "TAT"
        case tel = "TEL"
        case tgk = "TGK"
        case tgl = "TGL"
        case tha = "THA"
        case tir = "TIR"
        case tng = "TNG"
        case ton = "TON"
        case tsn = "TSN"
        case tso = "TSO"
        case tuk = "TUK"
        case tur = "TUR"
        case twi = "TWI"
        case uig = "UIG"
        case ukr = "UKR"
        case urd = "URD"
        case uzb = "UZB"
        case ven = "VEN"
        case vie = "VIE"
        case vol = "VOL"
        case wln = "WLN"
        case wol = "WOL"
        case xho = "XHO"
        case yid = "YID"
        case yor = "YOR"
        case zha = "ZHA"
        case zho = "ZHO"
        case zul = "ZUL"
        public var description: String { return self.rawValue }
    }

    public enum M2tsAudioBufferModel: String, CustomStringConvertible, Codable {
        case atsc = "ATSC"
        case dvb = "DVB"
        public var description: String { return self.rawValue }
    }

    public enum M2tsAudioDuration: String, CustomStringConvertible, Codable {
        case defaultCodecDuration = "DEFAULT_CODEC_DURATION"
        case matchVideoDuration = "MATCH_VIDEO_DURATION"
        public var description: String { return self.rawValue }
    }

    public enum M2tsBufferModel: String, CustomStringConvertible, Codable {
        case multiplex = "MULTIPLEX"
        case none = "NONE"
        public var description: String { return self.rawValue }
    }

    public enum M2tsEbpAudioInterval: String, CustomStringConvertible, Codable {
        case videoAndFixedIntervals = "VIDEO_AND_FIXED_INTERVALS"
        case videoInterval = "VIDEO_INTERVAL"
        public var description: String { return self.rawValue }
    }

    public enum M2tsEbpPlacement: String, CustomStringConvertible, Codable {
        case videoAndAudioPids = "VIDEO_AND_AUDIO_PIDS"
        case videoPid = "VIDEO_PID"
        public var description: String { return self.rawValue }
    }

    public enum M2tsEsRateInPes: String, CustomStringConvertible, Codable {
        case exclude = "EXCLUDE"
        case include = "INCLUDE"
        public var description: String { return self.rawValue }
    }

    public enum M2tsForceTsVideoEbpOrder: String, CustomStringConvertible, Codable {
        case `default` = "DEFAULT"
        case force = "FORCE"
        public var description: String { return self.rawValue }
    }

    public enum M2tsNielsenId3: String, CustomStringConvertible, Codable {
        case insert = "INSERT"
        case none = "NONE"
        public var description: String { return self.rawValue }
    }

    public enum M2tsPcrControl: String, CustomStringConvertible, Codable {
        case configuredPcrPeriod = "CONFIGURED_PCR_PERIOD"
        case pcrEveryPesPacket = "PCR_EVERY_PES_PACKET"
        public var description: String { return self.rawValue }
    }

    public enum M2tsRateMode: String, CustomStringConvertible, Codable {
        case cbr = "CBR"
        case vbr = "VBR"
        public var description: String { return self.rawValue }
    }

    public enum M2tsScte35Source: String, CustomStringConvertible, Codable {
        case none = "NONE"
        case passthrough = "PASSTHROUGH"
        public var description: String { return self.rawValue }
    }

    public enum M2tsSegmentationMarkers: String, CustomStringConvertible, Codable {
        case ebp = "EBP"
        case ebpLegacy = "EBP_LEGACY"
        case none = "NONE"
        case psiSegstart = "PSI_SEGSTART"
        case raiAdapt = "RAI_ADAPT"
        case raiSegstart = "RAI_SEGSTART"
        public var description: String { return self.rawValue }
    }

    public enum M2tsSegmentationStyle: String, CustomStringConvertible, Codable {
        case maintainCadence = "MAINTAIN_CADENCE"
        case resetCadence = "RESET_CADENCE"
        public var description: String { return self.rawValue }
    }

    public enum M3u8AudioDuration: String, CustomStringConvertible, Codable {
        case defaultCodecDuration = "DEFAULT_CODEC_DURATION"
        case matchVideoDuration = "MATCH_VIDEO_DURATION"
        public var description: String { return self.rawValue }
    }

    public enum M3u8NielsenId3: String, CustomStringConvertible, Codable {
        case insert = "INSERT"
        case none = "NONE"
        public var description: String { return self.rawValue }
    }

    public enum M3u8PcrControl: String, CustomStringConvertible, Codable {
        case configuredPcrPeriod = "CONFIGURED_PCR_PERIOD"
        case pcrEveryPesPacket = "PCR_EVERY_PES_PACKET"
        public var description: String { return self.rawValue }
    }

    public enum M3u8Scte35Source: String, CustomStringConvertible, Codable {
        case none = "NONE"
        case passthrough = "PASSTHROUGH"
        public var description: String { return self.rawValue }
    }

    public enum MotionImageInsertionMode: String, CustomStringConvertible, Codable {
        case mov = "MOV"
        case png = "PNG"
        public var description: String { return self.rawValue }
    }

    public enum MotionImagePlayback: String, CustomStringConvertible, Codable {
        case once = "ONCE"
        case `repeat` = "REPEAT"
        public var description: String { return self.rawValue }
    }

    public enum MovClapAtom: String, CustomStringConvertible, Codable {
        case exclude = "EXCLUDE"
        case include = "INCLUDE"
        public var description: String { return self.rawValue }
    }

    public enum MovCslgAtom: String, CustomStringConvertible, Codable {
        case exclude = "EXCLUDE"
        case include = "INCLUDE"
        public var description: String { return self.rawValue }
    }

    public enum MovMpeg2FourCCControl: String, CustomStringConvertible, Codable {
        case mpeg = "MPEG"
        case xdcam = "XDCAM"
        public var description: String { return self.rawValue }
    }

    public enum MovPaddingControl: String, CustomStringConvertible, Codable {
        case none = "NONE"
        case omneon = "OMNEON"
        public var description: String { return self.rawValue }
    }

    public enum MovReference: String, CustomStringConvertible, Codable {
        case external = "EXTERNAL"
        case selfContained = "SELF_CONTAINED"
        public var description: String { return self.rawValue }
    }

    public enum Mp3RateControlMode: String, CustomStringConvertible, Codable {
        case cbr = "CBR"
        case vbr = "VBR"
        public var description: String { return self.rawValue }
    }

    public enum Mp4CslgAtom: String, CustomStringConvertible, Codable {
        case exclude = "EXCLUDE"
        case include = "INCLUDE"
        public var description: String { return self.rawValue }
    }

    public enum Mp4FreeSpaceBox: String, CustomStringConvertible, Codable {
        case exclude = "EXCLUDE"
        case include = "INCLUDE"
        public var description: String { return self.rawValue }
    }

    public enum Mp4MoovPlacement: String, CustomStringConvertible, Codable {
        case normal = "NORMAL"
        case progressiveDownload = "PROGRESSIVE_DOWNLOAD"
        public var description: String { return self.rawValue }
    }

    public enum MpdAccessibilityCaptionHints: String, CustomStringConvertible, Codable {
        case exclude = "EXCLUDE"
        case include = "INCLUDE"
        public var description: String { return self.rawValue }
    }

    public enum MpdAudioDuration: String, CustomStringConvertible, Codable {
        case defaultCodecDuration = "DEFAULT_CODEC_DURATION"
        case matchVideoDuration = "MATCH_VIDEO_DURATION"
        public var description: String { return self.rawValue }
    }

    public enum MpdCaptionContainerType: String, CustomStringConvertible, Codable {
        case fragmentedMp4 = "FRAGMENTED_MP4"
        case raw = "RAW"
        public var description: String { return self.rawValue }
    }

    public enum MpdScte35Esam: String, CustomStringConvertible, Codable {
        case insert = "INSERT"
        case none = "NONE"
        public var description: String { return self.rawValue }
    }

    public enum MpdScte35Source: String, CustomStringConvertible, Codable {
        case none = "NONE"
        case passthrough = "PASSTHROUGH"
        public var description: String { return self.rawValue }
    }

    public enum Mpeg2AdaptiveQuantization: String, CustomStringConvertible, Codable {
        case high = "HIGH"
        case low = "LOW"
        case medium = "MEDIUM"
        case off = "OFF"
        public var description: String { return self.rawValue }
    }

    public enum Mpeg2CodecLevel: String, CustomStringConvertible, Codable {
        case auto = "AUTO"
        case high = "HIGH"
        case high1440 = "HIGH1440"
        case low = "LOW"
        case main = "MAIN"
        public var description: String { return self.rawValue }
    }

    public enum Mpeg2CodecProfile: String, CustomStringConvertible, Codable {
        case main = "MAIN"
        case profile422 = "PROFILE_422"
        public var description: String { return self.rawValue }
    }

    public enum Mpeg2DynamicSubGop: String, CustomStringConvertible, Codable {
        case adaptive = "ADAPTIVE"
        case `static` = "STATIC"
        public var description: String { return self.rawValue }
    }

    public enum Mpeg2FramerateControl: String, CustomStringConvertible, Codable {
        case initializeFromSource = "INITIALIZE_FROM_SOURCE"
        case specified = "SPECIFIED"
        public var description: String { return self.rawValue }
    }

    public enum Mpeg2FramerateConversionAlgorithm: String, CustomStringConvertible, Codable {
        case duplicateDrop = "DUPLICATE_DROP"
        case frameformer = "FRAMEFORMER"
        case interpolate = "INTERPOLATE"
        public var description: String { return self.rawValue }
    }

    public enum Mpeg2GopSizeUnits: String, CustomStringConvertible, Codable {
        case frames = "FRAMES"
        case seconds = "SECONDS"
        public var description: String { return self.rawValue }
    }

    public enum Mpeg2InterlaceMode: String, CustomStringConvertible, Codable {
        case bottomField = "BOTTOM_FIELD"
        case followBottomField = "FOLLOW_BOTTOM_FIELD"
        case followTopField = "FOLLOW_TOP_FIELD"
        case progressive = "PROGRESSIVE"
        case topField = "TOP_FIELD"
        public var description: String { return self.rawValue }
    }

    public enum Mpeg2IntraDcPrecision: String, CustomStringConvertible, Codable {
        case auto = "AUTO"
        case intraDcPrecision10 = "INTRA_DC_PRECISION_10"
        case intraDcPrecision11 = "INTRA_DC_PRECISION_11"
        case intraDcPrecision8 = "INTRA_DC_PRECISION_8"
        case intraDcPrecision9 = "INTRA_DC_PRECISION_9"
        public var description: String { return self.rawValue }
    }

    public enum Mpeg2ParControl: String, CustomStringConvertible, Codable {
        case initializeFromSource = "INITIALIZE_FROM_SOURCE"
        case specified = "SPECIFIED"
        public var description: String { return self.rawValue }
    }

    public enum Mpeg2QualityTuningLevel: String, CustomStringConvertible, Codable {
        case multiPass = "MULTI_PASS"
        case singlePass = "SINGLE_PASS"
        public var description: String { return self.rawValue }
    }

    public enum Mpeg2RateControlMode: String, CustomStringConvertible, Codable {
        case cbr = "CBR"
        case vbr = "VBR"
        public var description: String { return self.rawValue }
    }

    public enum Mpeg2ScanTypeConversionMode: String, CustomStringConvertible, Codable {
        case interlaced = "INTERLACED"
        case interlacedOptimize = "INTERLACED_OPTIMIZE"
        public var description: String { return self.rawValue }
    }

    public enum Mpeg2SceneChangeDetect: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum Mpeg2SlowPal: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum Mpeg2SpatialAdaptiveQuantization: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum Mpeg2Syntax: String, CustomStringConvertible, Codable {
        case d10 = "D_10"
        case `default` = "DEFAULT"
        public var description: String { return self.rawValue }
    }

    public enum Mpeg2Telecine: String, CustomStringConvertible, Codable {
        case hard = "HARD"
        case none = "NONE"
        case soft = "SOFT"
        public var description: String { return self.rawValue }
    }

    public enum Mpeg2TemporalAdaptiveQuantization: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum MsSmoothAudioDeduplication: String, CustomStringConvertible, Codable {
        case combineDuplicateStreams = "COMBINE_DUPLICATE_STREAMS"
        case none = "NONE"
        public var description: String { return self.rawValue }
    }

    public enum MsSmoothManifestEncoding: String, CustomStringConvertible, Codable {
        case utf16 = "UTF16"
        case utf8 = "UTF8"
        public var description: String { return self.rawValue }
    }

    public enum MxfAfdSignaling: String, CustomStringConvertible, Codable {
        case copyFromVideo = "COPY_FROM_VIDEO"
        case noCopy = "NO_COPY"
        public var description: String { return self.rawValue }
    }

    public enum MxfProfile: String, CustomStringConvertible, Codable {
        case d10 = "D_10"
        case op1a = "OP1A"
        case xdcam = "XDCAM"
        public var description: String { return self.rawValue }
    }

    public enum NielsenActiveWatermarkProcessType: String, CustomStringConvertible, Codable {
        case cbet = "CBET"
        case naes2AndNw = "NAES2_AND_NW"
        case naes2AndNwAndCbet = "NAES2_AND_NW_AND_CBET"
        public var description: String { return self.rawValue }
    }

    public enum NielsenSourceWatermarkStatusType: String, CustomStringConvertible, Codable {
        case clean = "CLEAN"
        case watermarked = "WATERMARKED"
        public var description: String { return self.rawValue }
    }

    public enum NielsenUniqueTicPerAudioTrackType: String, CustomStringConvertible, Codable {
        case reserveUniqueTicsPerTrack = "RESERVE_UNIQUE_TICS_PER_TRACK"
        case sameTicsPerTrack = "SAME_TICS_PER_TRACK"
        public var description: String { return self.rawValue }
    }

    public enum NoiseFilterPostTemporalSharpening: String, CustomStringConvertible, Codable {
        case auto = "AUTO"
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum NoiseReducerFilter: String, CustomStringConvertible, Codable {
        case bilateral = "BILATERAL"
        case conserve = "CONSERVE"
        case gaussian = "GAUSSIAN"
        case lanczos = "LANCZOS"
        case mean = "MEAN"
        case sharpen = "SHARPEN"
        case spatial = "SPATIAL"
        case temporal = "TEMPORAL"
        public var description: String { return self.rawValue }
    }

    public enum Order: String, CustomStringConvertible, Codable {
        case ascending = "ASCENDING"
        case descending = "DESCENDING"
        public var description: String { return self.rawValue }
    }

    public enum OutputGroupType: String, CustomStringConvertible, Codable {
        case cmafGroupSettings = "CMAF_GROUP_SETTINGS"
        case dashIsoGroupSettings = "DASH_ISO_GROUP_SETTINGS"
        case fileGroupSettings = "FILE_GROUP_SETTINGS"
        case hlsGroupSettings = "HLS_GROUP_SETTINGS"
        case msSmoothGroupSettings = "MS_SMOOTH_GROUP_SETTINGS"
        public var description: String { return self.rawValue }
    }

    public enum OutputSdt: String, CustomStringConvertible, Codable {
        case sdtFollow = "SDT_FOLLOW"
        case sdtFollowIfPresent = "SDT_FOLLOW_IF_PRESENT"
        case sdtManual = "SDT_MANUAL"
        case sdtNone = "SDT_NONE"
        public var description: String { return self.rawValue }
    }

    public enum PresetListBy: String, CustomStringConvertible, Codable {
        case creationDate = "CREATION_DATE"
        case name = "NAME"
        case system = "SYSTEM"
        public var description: String { return self.rawValue }
    }

    public enum PricingPlan: String, CustomStringConvertible, Codable {
        case onDemand = "ON_DEMAND"
        case reserved = "RESERVED"
        public var description: String { return self.rawValue }
    }

    public enum ProresCodecProfile: String, CustomStringConvertible, Codable {
        case appleProres422 = "APPLE_PRORES_422"
        case appleProres422Hq = "APPLE_PRORES_422_HQ"
        case appleProres422Lt = "APPLE_PRORES_422_LT"
        case appleProres422Proxy = "APPLE_PRORES_422_PROXY"
        public var description: String { return self.rawValue }
    }

    public enum ProresFramerateControl: String, CustomStringConvertible, Codable {
        case initializeFromSource = "INITIALIZE_FROM_SOURCE"
        case specified = "SPECIFIED"
        public var description: String { return self.rawValue }
    }

    public enum ProresFramerateConversionAlgorithm: String, CustomStringConvertible, Codable {
        case duplicateDrop = "DUPLICATE_DROP"
        case frameformer = "FRAMEFORMER"
        case interpolate = "INTERPOLATE"
        public var description: String { return self.rawValue }
    }

    public enum ProresInterlaceMode: String, CustomStringConvertible, Codable {
        case bottomField = "BOTTOM_FIELD"
        case followBottomField = "FOLLOW_BOTTOM_FIELD"
        case followTopField = "FOLLOW_TOP_FIELD"
        case progressive = "PROGRESSIVE"
        case topField = "TOP_FIELD"
        public var description: String { return self.rawValue }
    }

    public enum ProresParControl: String, CustomStringConvertible, Codable {
        case initializeFromSource = "INITIALIZE_FROM_SOURCE"
        case specified = "SPECIFIED"
        public var description: String { return self.rawValue }
    }

    public enum ProresScanTypeConversionMode: String, CustomStringConvertible, Codable {
        case interlaced = "INTERLACED"
        case interlacedOptimize = "INTERLACED_OPTIMIZE"
        public var description: String { return self.rawValue }
    }

    public enum ProresSlowPal: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum ProresTelecine: String, CustomStringConvertible, Codable {
        case hard = "HARD"
        case none = "NONE"
        public var description: String { return self.rawValue }
    }

    public enum QueueListBy: String, CustomStringConvertible, Codable {
        case creationDate = "CREATION_DATE"
        case name = "NAME"
        public var description: String { return self.rawValue }
    }

    public enum QueueStatus: String, CustomStringConvertible, Codable {
        case active = "ACTIVE"
        case paused = "PAUSED"
        public var description: String { return self.rawValue }
    }

    public enum RenewalType: String, CustomStringConvertible, Codable {
        case autoRenew = "AUTO_RENEW"
        case expire = "EXPIRE"
        public var description: String { return self.rawValue }
    }

    public enum ReservationPlanStatus: String, CustomStringConvertible, Codable {
        case active = "ACTIVE"
        case expired = "EXPIRED"
        public var description: String { return self.rawValue }
    }

    public enum RespondToAfd: String, CustomStringConvertible, Codable {
        case none = "NONE"
        case passthrough = "PASSTHROUGH"
        case respond = "RESPOND"
        public var description: String { return self.rawValue }
    }

    public enum S3ObjectCannedAcl: String, CustomStringConvertible, Codable {
        case authenticatedRead = "AUTHENTICATED_READ"
        case bucketOwnerFullControl = "BUCKET_OWNER_FULL_CONTROL"
        case bucketOwnerRead = "BUCKET_OWNER_READ"
        case publicRead = "PUBLIC_READ"
        public var description: String { return self.rawValue }
    }

    public enum S3ServerSideEncryptionType: String, CustomStringConvertible, Codable {
        case serverSideEncryptionKms = "SERVER_SIDE_ENCRYPTION_KMS"
        case serverSideEncryptionS3 = "SERVER_SIDE_ENCRYPTION_S3"
        public var description: String { return self.rawValue }
    }

    public enum ScalingBehavior: String, CustomStringConvertible, Codable {
        case `default` = "DEFAULT"
        case stretchToOutput = "STRETCH_TO_OUTPUT"
        public var description: String { return self.rawValue }
    }

    public enum SccDestinationFramerate: String, CustomStringConvertible, Codable {
        case framerate2397 = "FRAMERATE_23_97"
        case framerate24 = "FRAMERATE_24"
        case framerate25 = "FRAMERATE_25"
        case framerate2997Dropframe = "FRAMERATE_29_97_DROPFRAME"
        case framerate2997NonDropframe = "FRAMERATE_29_97_NON_DROPFRAME"
        public var description: String { return self.rawValue }
    }

    public enum SimulateReservedQueue: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum StatusUpdateInterval: String, CustomStringConvertible, Codable {
        case seconds10 = "SECONDS_10"
        case seconds12 = "SECONDS_12"
        case seconds120 = "SECONDS_120"
        case seconds15 = "SECONDS_15"
        case seconds180 = "SECONDS_180"
        case seconds20 = "SECONDS_20"
        case seconds240 = "SECONDS_240"
        case seconds30 = "SECONDS_30"
        case seconds300 = "SECONDS_300"
        case seconds360 = "SECONDS_360"
        case seconds420 = "SECONDS_420"
        case seconds480 = "SECONDS_480"
        case seconds540 = "SECONDS_540"
        case seconds60 = "SECONDS_60"
        case seconds600 = "SECONDS_600"
        public var description: String { return self.rawValue }
    }

    public enum TeletextPageType: String, CustomStringConvertible, Codable {
        case pageTypeAddlInfo = "PAGE_TYPE_ADDL_INFO"
        case pageTypeHearingImpairedSubtitle = "PAGE_TYPE_HEARING_IMPAIRED_SUBTITLE"
        case pageTypeInitial = "PAGE_TYPE_INITIAL"
        case pageTypeProgramSchedule = "PAGE_TYPE_PROGRAM_SCHEDULE"
        case pageTypeSubtitle = "PAGE_TYPE_SUBTITLE"
        public var description: String { return self.rawValue }
    }

    public enum TimecodeBurninPosition: String, CustomStringConvertible, Codable {
        case bottomCenter = "BOTTOM_CENTER"
        case bottomLeft = "BOTTOM_LEFT"
        case bottomRight = "BOTTOM_RIGHT"
        case middleCenter = "MIDDLE_CENTER"
        case middleLeft = "MIDDLE_LEFT"
        case middleRight = "MIDDLE_RIGHT"
        case topCenter = "TOP_CENTER"
        case topLeft = "TOP_LEFT"
        case topRight = "TOP_RIGHT"
        public var description: String { return self.rawValue }
    }

    public enum TimecodeSource: String, CustomStringConvertible, Codable {
        case embedded = "EMBEDDED"
        case specifiedstart = "SPECIFIEDSTART"
        case zerobased = "ZEROBASED"
        public var description: String { return self.rawValue }
    }

    public enum TimedMetadata: String, CustomStringConvertible, Codable {
        case none = "NONE"
        case passthrough = "PASSTHROUGH"
        public var description: String { return self.rawValue }
    }

    public enum TtmlStylePassthrough: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum `Type`: String, CustomStringConvertible, Codable {
        case custom = "CUSTOM"
        case system = "SYSTEM"
        public var description: String { return self.rawValue }
    }

    public enum Vc3Class: String, CustomStringConvertible, Codable {
        case class1458Bit = "CLASS_145_8BIT"
        case class22010Bit = "CLASS_220_10BIT"
        case class2208Bit = "CLASS_220_8BIT"
        public var description: String { return self.rawValue }
    }

    public enum Vc3FramerateControl: String, CustomStringConvertible, Codable {
        case initializeFromSource = "INITIALIZE_FROM_SOURCE"
        case specified = "SPECIFIED"
        public var description: String { return self.rawValue }
    }

    public enum Vc3FramerateConversionAlgorithm: String, CustomStringConvertible, Codable {
        case duplicateDrop = "DUPLICATE_DROP"
        case frameformer = "FRAMEFORMER"
        case interpolate = "INTERPOLATE"
        public var description: String { return self.rawValue }
    }

    public enum Vc3InterlaceMode: String, CustomStringConvertible, Codable {
        case interlaced = "INTERLACED"
        case progressive = "PROGRESSIVE"
        public var description: String { return self.rawValue }
    }

    public enum Vc3ScanTypeConversionMode: String, CustomStringConvertible, Codable {
        case interlaced = "INTERLACED"
        case interlacedOptimize = "INTERLACED_OPTIMIZE"
        public var description: String { return self.rawValue }
    }

    public enum Vc3SlowPal: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum Vc3Telecine: String, CustomStringConvertible, Codable {
        case hard = "HARD"
        case none = "NONE"
        public var description: String { return self.rawValue }
    }

    public enum VideoCodec: String, CustomStringConvertible, Codable {
        case av1 = "AV1"
        case avcIntra = "AVC_INTRA"
        case frameCapture = "FRAME_CAPTURE"
        case h264 = "H_264"
        case h265 = "H_265"
        case mpeg2 = "MPEG2"
        case prores = "PRORES"
        case vc3 = "VC3"
        case vp8 = "VP8"
        case vp9 = "VP9"
        public var description: String { return self.rawValue }
    }

    public enum VideoTimecodeInsertion: String, CustomStringConvertible, Codable {
        case disabled = "DISABLED"
        case picTimingSei = "PIC_TIMING_SEI"
        public var description: String { return self.rawValue }
    }

    public enum Vp8FramerateControl: String, CustomStringConvertible, Codable {
        case initializeFromSource = "INITIALIZE_FROM_SOURCE"
        case specified = "SPECIFIED"
        public var description: String { return self.rawValue }
    }

    public enum Vp8FramerateConversionAlgorithm: String, CustomStringConvertible, Codable {
        case duplicateDrop = "DUPLICATE_DROP"
        case frameformer = "FRAMEFORMER"
        case interpolate = "INTERPOLATE"
        public var description: String { return self.rawValue }
    }

    public enum Vp8ParControl: String, CustomStringConvertible, Codable {
        case initializeFromSource = "INITIALIZE_FROM_SOURCE"
        case specified = "SPECIFIED"
        public var description: String { return self.rawValue }
    }

    public enum Vp8QualityTuningLevel: String, CustomStringConvertible, Codable {
        case multiPass = "MULTI_PASS"
        case multiPassHq = "MULTI_PASS_HQ"
        public var description: String { return self.rawValue }
    }

    public enum Vp8RateControlMode: String, CustomStringConvertible, Codable {
        case vbr = "VBR"
        public var description: String { return self.rawValue }
    }

    public enum Vp9FramerateControl: String, CustomStringConvertible, Codable {
        case initializeFromSource = "INITIALIZE_FROM_SOURCE"
        case specified = "SPECIFIED"
        public var description: String { return self.rawValue }
    }

    public enum Vp9FramerateConversionAlgorithm: String, CustomStringConvertible, Codable {
        case duplicateDrop = "DUPLICATE_DROP"
        case frameformer = "FRAMEFORMER"
        case interpolate = "INTERPOLATE"
        public var description: String { return self.rawValue }
    }

    public enum Vp9ParControl: String, CustomStringConvertible, Codable {
        case initializeFromSource = "INITIALIZE_FROM_SOURCE"
        case specified = "SPECIFIED"
        public var description: String { return self.rawValue }
    }

    public enum Vp9QualityTuningLevel: String, CustomStringConvertible, Codable {
        case multiPass = "MULTI_PASS"
        case multiPassHq = "MULTI_PASS_HQ"
        public var description: String { return self.rawValue }
    }

    public enum Vp9RateControlMode: String, CustomStringConvertible, Codable {
        case vbr = "VBR"
        public var description: String { return self.rawValue }
    }

    public enum WatermarkingStrength: String, CustomStringConvertible, Codable {
        case `default` = "DEFAULT"
        case lighter = "LIGHTER"
        case lightest = "LIGHTEST"
        case stronger = "STRONGER"
        case strongest = "STRONGEST"
        public var description: String { return self.rawValue }
    }

    public enum WavFormat: String, CustomStringConvertible, Codable {
        case rf64 = "RF64"
        case riff = "RIFF"
        public var description: String { return self.rawValue }
    }

    // MARK: Shapes

    public struct AacSettings: AWSEncodableShape & AWSDecodableShape {
        /// Choose BROADCASTER_MIXED_AD when the input contains pre-mixed main audio + audio description (AD) as a stereo pair. The value for AudioType will be set to 3, which signals to downstream systems that this stream contains "broadcaster mixed AD". Note that the input received by the encoder must contain pre-mixed audio; the encoder does not perform the mixing. When you choose BROADCASTER_MIXED_AD, the encoder ignores any values you provide in AudioType and  FollowInputAudioType. Choose NORMAL when the input does not contain pre-mixed audio + audio description (AD). In this case, the encoder will use any values you provide for AudioType and FollowInputAudioType.
        public let audioDescriptionBroadcasterMix: AacAudioDescriptionBroadcasterMix?
        /// Specify the average bitrate in bits per second. The set of valid values for this setting is: 6000, 8000, 10000, 12000, 14000, 16000, 20000, 24000, 28000, 32000, 40000, 48000, 56000, 64000, 80000, 96000, 112000, 128000, 160000, 192000, 224000, 256000, 288000, 320000, 384000, 448000, 512000, 576000, 640000, 768000, 896000, 1024000. The value you set is also constrained by the values that you choose for Profile (codecProfile), Bitrate control mode (codingMode), and Sample rate (sampleRate). Default values depend on Bitrate control mode and Profile.
        public let bitrate: Int?
        /// AAC Profile.
        public let codecProfile: AacCodecProfile?
        /// Mono (Audio Description), Mono, Stereo, or 5.1 channel layout. Valid values depend on rate control mode and profile. "1.0 - Audio Description (Receiver Mix)" setting receives a stereo description plus control track and emits a mono AAC encode of the description track, with control data emitted in the PES header as per ETSI TS 101 154 Annex E.
        public let codingMode: AacCodingMode?
        /// Rate Control Mode.
        public let rateControlMode: AacRateControlMode?
        /// Enables LATM/LOAS AAC output. Note that if you use LATM/LOAS AAC in an output, you must choose "No container" for the output container.
        public let rawFormat: AacRawFormat?
        /// Sample rate in Hz. Valid values depend on rate control mode and profile.
        public let sampleRate: Int?
        /// Use MPEG-2 AAC instead of MPEG-4 AAC audio for raw or MPEG-2 Transport Stream containers.
        public let specification: AacSpecification?
        /// VBR Quality Level - Only used if rate_control_mode is VBR.
        public let vbrQuality: AacVbrQuality?

        public init(audioDescriptionBroadcasterMix: AacAudioDescriptionBroadcasterMix? = nil, bitrate: Int? = nil, codecProfile: AacCodecProfile? = nil, codingMode: AacCodingMode? = nil, rateControlMode: AacRateControlMode? = nil, rawFormat: AacRawFormat? = nil, sampleRate: Int? = nil, specification: AacSpecification? = nil, vbrQuality: AacVbrQuality? = nil) {
            self.audioDescriptionBroadcasterMix = audioDescriptionBroadcasterMix
            self.bitrate = bitrate
            self.codecProfile = codecProfile
            self.codingMode = codingMode
            self.rateControlMode = rateControlMode
            self.rawFormat = rawFormat
            self.sampleRate = sampleRate
            self.specification = specification
            self.vbrQuality = vbrQuality
        }

        public func validate(name: String) throws {
            try self.validate(self.bitrate, name: "bitrate", parent: name, max: 1_024_000)
            try self.validate(self.bitrate, name: "bitrate", parent: name, min: 6000)
            try self.validate(self.sampleRate, name: "sampleRate", parent: name, max: 96000)
            try self.validate(self.sampleRate, name: "sampleRate", parent: name, min: 8000)
        }

        private enum CodingKeys: String, CodingKey {
            case audioDescriptionBroadcasterMix
            case bitrate
            case codecProfile
            case codingMode
            case rateControlMode
            case rawFormat
            case sampleRate
            case specification
            case vbrQuality
        }
    }

    public struct Ac3Settings: AWSEncodableShape & AWSDecodableShape {
        /// Specify the average bitrate in bits per second. Valid bitrates depend on the coding mode.
        public let bitrate: Int?
        /// Specify the bitstream mode for the AC-3 stream that the encoder emits. For more information about the AC3 bitstream mode, see ATSC A/52-2012 (Annex E).
        public let bitstreamMode: Ac3BitstreamMode?
        /// Dolby Digital coding mode. Determines number of channels.
        public let codingMode: Ac3CodingMode?
        /// Sets the dialnorm for the output. If blank and input audio is Dolby Digital, dialnorm will be passed through.
        public let dialnorm: Int?
        /// If set to FILM_STANDARD, adds dynamic range compression signaling to the output bitstream as defined in the Dolby Digital specification.
        public let dynamicRangeCompressionProfile: Ac3DynamicRangeCompressionProfile?
        /// Applies a 120Hz lowpass filter to the LFE channel prior to encoding. Only valid with 3_2_LFE coding mode.
        public let lfeFilter: Ac3LfeFilter?
        /// When set to FOLLOW_INPUT, encoder metadata will be sourced from the DD, DD+, or DolbyE decoder that supplied this audio data. If audio was not supplied from one of these streams, then the static metadata settings will be used.
        public let metadataControl: Ac3MetadataControl?
        /// This value is always 48000. It represents the sample rate in Hz.
        public let sampleRate: Int?

        public init(bitrate: Int? = nil, bitstreamMode: Ac3BitstreamMode? = nil, codingMode: Ac3CodingMode? = nil, dialnorm: Int? = nil, dynamicRangeCompressionProfile: Ac3DynamicRangeCompressionProfile? = nil, lfeFilter: Ac3LfeFilter? = nil, metadataControl: Ac3MetadataControl? = nil, sampleRate: Int? = nil) {
            self.bitrate = bitrate
            self.bitstreamMode = bitstreamMode
            self.codingMode = codingMode
            self.dialnorm = dialnorm
            self.dynamicRangeCompressionProfile = dynamicRangeCompressionProfile
            self.lfeFilter = lfeFilter
            self.metadataControl = metadataControl
            self.sampleRate = sampleRate
        }

        public func validate(name: String) throws {
            try self.validate(self.bitrate, name: "bitrate", parent: name, max: 640_000)
            try self.validate(self.bitrate, name: "bitrate", parent: name, min: 64000)
            try self.validate(self.dialnorm, name: "dialnorm", parent: name, max: 31)
            try self.validate(self.dialnorm, name: "dialnorm", parent: name, min: 1)
            try self.validate(self.sampleRate, name: "sampleRate", parent: name, max: 48000)
            try self.validate(self.sampleRate, name: "sampleRate", parent: name, min: 48000)
        }

        private enum CodingKeys: String, CodingKey {
            case bitrate
            case bitstreamMode
            case codingMode
            case dialnorm
            case dynamicRangeCompressionProfile
            case lfeFilter
            case metadataControl
            case sampleRate
        }
    }

    public struct AccelerationSettings: AWSEncodableShape & AWSDecodableShape {
        /// Specify the conditions when the service will run your job with accelerated transcoding.
        public let mode: AccelerationMode

        public init(mode: AccelerationMode) {
            self.mode = mode
        }

        private enum CodingKeys: String, CodingKey {
            case mode
        }
    }

    public struct AiffSettings: AWSEncodableShape & AWSDecodableShape {
        /// Specify Bit depth (BitDepth), in bits per sample, to choose the encoding quality for this audio track.
        public let bitDepth: Int?
        /// Specify the number of channels in this output audio track. Valid values are 1 and even numbers up to 64. For example, 1, 2, 4, 6, and so on, up to 64.
        public let channels: Int?
        /// Sample rate in hz.
        public let sampleRate: Int?

        public init(bitDepth: Int? = nil, channels: Int? = nil, sampleRate: Int? = nil) {
            self.bitDepth = bitDepth
            self.channels = channels
            self.sampleRate = sampleRate
        }

        public func validate(name: String) throws {
            try self.validate(self.bitDepth, name: "bitDepth", parent: name, max: 24)
            try self.validate(self.bitDepth, name: "bitDepth", parent: name, min: 16)
            try self.validate(self.channels, name: "channels", parent: name, max: 64)
            try self.validate(self.channels, name: "channels", parent: name, min: 1)
            try self.validate(self.sampleRate, name: "sampleRate", parent: name, max: 192_000)
            try self.validate(self.sampleRate, name: "sampleRate", parent: name, min: 8000)
        }

        private enum CodingKeys: String, CodingKey {
            case bitDepth
            case channels
            case sampleRate
        }
    }

    public struct AncillarySourceSettings: AWSEncodableShape & AWSDecodableShape {
        /// Specify whether this set of input captions appears in your outputs in both 608 and 708 format. If you choose Upconvert (UPCONVERT), MediaConvert includes the captions data in two ways: it passes the 608 data through using the 608 compatibility bytes fields of the 708 wrapper, and it also translates the 608 data into 708.
        public let convert608To708: AncillaryConvert608To708?
        /// Specifies the 608 channel number in the ancillary data track from which to extract captions. Unused for passthrough.
        public let sourceAncillaryChannelNumber: Int?
        /// By default, the service terminates any unterminated captions at the end of each input. If you want the caption to continue onto your next input, disable this setting.
        public let terminateCaptions: AncillaryTerminateCaptions?

        public init(convert608To708: AncillaryConvert608To708? = nil, sourceAncillaryChannelNumber: Int? = nil, terminateCaptions: AncillaryTerminateCaptions? = nil) {
            self.convert608To708 = convert608To708
            self.sourceAncillaryChannelNumber = sourceAncillaryChannelNumber
            self.terminateCaptions = terminateCaptions
        }

        public func validate(name: String) throws {
            try self.validate(self.sourceAncillaryChannelNumber, name: "sourceAncillaryChannelNumber", parent: name, max: 4)
            try self.validate(self.sourceAncillaryChannelNumber, name: "sourceAncillaryChannelNumber", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case convert608To708
            case sourceAncillaryChannelNumber
            case terminateCaptions
        }
    }

    public struct AssociateCertificateRequest: AWSEncodableShape {
        /// The ARN of the ACM certificate that you want to associate with your MediaConvert resource.
        public let arn: String

        public init(arn: String) {
            self.arn = arn
        }

        private enum CodingKeys: String, CodingKey {
            case arn
        }
    }

    public struct AssociateCertificateResponse: AWSDecodableShape {
        public init() {}
    }

    public struct AudioChannelTaggingSettings: AWSEncodableShape & AWSDecodableShape {
        /// You can add a tag for this mono-channel audio track to mimic its placement in a multi-channel layout.  For example, if this track is the left surround channel, choose Left surround (LS).
        public let channelTag: AudioChannelTag?

        public init(channelTag: AudioChannelTag? = nil) {
            self.channelTag = channelTag
        }

        private enum CodingKeys: String, CodingKey {
            case channelTag
        }
    }

    public struct AudioCodecSettings: AWSEncodableShape & AWSDecodableShape {
        /// Required when you set (Codec) under (AudioDescriptions)>(CodecSettings) to the value AAC. The service accepts one of two mutually exclusive groups of AAC settings--VBR and CBR. To select one of these modes, set the value of Bitrate control mode (rateControlMode) to "VBR" or "CBR".  In VBR mode, you control the audio quality with the setting VBR quality (vbrQuality). In CBR mode, you use the setting Bitrate (bitrate). Defaults and valid values depend on the rate control mode.
        public let aacSettings: AacSettings?
        /// Required when you set (Codec) under (AudioDescriptions)>(CodecSettings) to the value AC3.
        public let ac3Settings: Ac3Settings?
        /// Required when you set (Codec) under (AudioDescriptions)>(CodecSettings) to the value AIFF.
        public let aiffSettings: AiffSettings?
        /// Type of Audio codec.
        public let codec: AudioCodec?
        /// Required when you set (Codec) under (AudioDescriptions)>(CodecSettings) to the value EAC3_ATMOS.
        public let eac3AtmosSettings: Eac3AtmosSettings?
        /// Required when you set (Codec) under (AudioDescriptions)>(CodecSettings) to the value EAC3.
        public let eac3Settings: Eac3Settings?
        /// Required when you set (Codec) under (AudioDescriptions)>(CodecSettings) to the value MP2.
        public let mp2Settings: Mp2Settings?
        /// Required when you set Codec, under AudioDescriptions>CodecSettings, to the value MP3.
        public let mp3Settings: Mp3Settings?
        /// Required when you set Codec, under AudioDescriptions>CodecSettings, to the value OPUS.
        public let opusSettings: OpusSettings?
        /// Required when you set Codec, under AudioDescriptions>CodecSettings, to the value Vorbis.
        public let vorbisSettings: VorbisSettings?
        /// Required when you set (Codec) under (AudioDescriptions)>(CodecSettings) to the value WAV.
        public let wavSettings: WavSettings?

        public init(aacSettings: AacSettings? = nil, ac3Settings: Ac3Settings? = nil, aiffSettings: AiffSettings? = nil, codec: AudioCodec? = nil, eac3AtmosSettings: Eac3AtmosSettings? = nil, eac3Settings: Eac3Settings? = nil, mp2Settings: Mp2Settings? = nil, mp3Settings: Mp3Settings? = nil, opusSettings: OpusSettings? = nil, vorbisSettings: VorbisSettings? = nil, wavSettings: WavSettings? = nil) {
            self.aacSettings = aacSettings
            self.ac3Settings = ac3Settings
            self.aiffSettings = aiffSettings
            self.codec = codec
            self.eac3AtmosSettings = eac3AtmosSettings
            self.eac3Settings = eac3Settings
            self.mp2Settings = mp2Settings
            self.mp3Settings = mp3Settings
            self.opusSettings = opusSettings
            self.vorbisSettings = vorbisSettings
            self.wavSettings = wavSettings
        }

        public func validate(name: String) throws {
            try self.aacSettings?.validate(name: "\(name).aacSettings")
            try self.ac3Settings?.validate(name: "\(name).ac3Settings")
            try self.aiffSettings?.validate(name: "\(name).aiffSettings")
            try self.eac3AtmosSettings?.validate(name: "\(name).eac3AtmosSettings")
            try self.eac3Settings?.validate(name: "\(name).eac3Settings")
            try self.mp2Settings?.validate(name: "\(name).mp2Settings")
            try self.mp3Settings?.validate(name: "\(name).mp3Settings")
            try self.opusSettings?.validate(name: "\(name).opusSettings")
            try self.vorbisSettings?.validate(name: "\(name).vorbisSettings")
            try self.wavSettings?.validate(name: "\(name).wavSettings")
        }

        private enum CodingKeys: String, CodingKey {
            case aacSettings
            case ac3Settings
            case aiffSettings
            case codec
            case eac3AtmosSettings
            case eac3Settings
            case mp2Settings
            case mp3Settings
            case opusSettings
            case vorbisSettings
            case wavSettings
        }
    }

    public struct AudioDescription: AWSEncodableShape & AWSDecodableShape {
        /// When you mimic a multi-channel audio layout with multiple mono-channel tracks, you can tag each channel layout manually. For example, you would tag the tracks that contain your left, right, and center audio with Left (L), Right (R), and Center (C), respectively. When you don't specify a value, MediaConvert labels your track as Center (C) by default. To use audio layout tagging, your output must be in a QuickTime (.mov) container; your audio codec must be AAC, WAV, or AIFF; and you must set up your audio track to have only one channel.
        public let audioChannelTaggingSettings: AudioChannelTaggingSettings?
        /// Advanced audio normalization settings. Ignore these settings unless you need to comply with a loudness standard.
        public let audioNormalizationSettings: AudioNormalizationSettings?
        /// Specifies which audio data to use from each input. In the simplest case, specify an "Audio Selector":#inputs-audio_selector by name based on its order within each input. For example if you specify "Audio Selector 3", then the third audio selector will be used from each input. If an input does not have an "Audio Selector 3", then the audio selector marked as "default" in that input will be used. If there is no audio selector marked as "default", silence will be inserted for the duration of that input. Alternatively, an "Audio Selector Group":#inputs-audio_selector_group name may be specified, with similar default/silence behavior. If no audio_source_name is specified, then "Audio Selector 1" will be chosen automatically.
        public let audioSourceName: String?
        /// Applies only if Follow Input Audio Type is unchecked (false). A number between 0 and 255. The following are defined in ISO-IEC 13818-1: 0 = Undefined, 1 = Clean Effects, 2 = Hearing Impaired, 3 = Visually Impaired Commentary, 4-255 = Reserved.
        public let audioType: Int?
        /// When set to FOLLOW_INPUT, if the input contains an ISO 639 audio_type, then that value is passed through to the output. If the input contains no ISO 639 audio_type, the value in Audio Type is included in the output. Otherwise the value in Audio Type is included in the output. Note that this field and audioType are both ignored if audioDescriptionBroadcasterMix is set to BROADCASTER_MIXED_AD.
        public let audioTypeControl: AudioTypeControl?
        /// Audio codec settings (CodecSettings) under (AudioDescriptions) contains the group of settings related to audio encoding. The settings in this group vary depending on the value that you choose for Audio codec (Codec). For each codec enum that you choose, define the corresponding settings object. The following lists the codec enum, settings object pairs. * AAC, AacSettings * MP2, Mp2Settings * MP3, Mp3Settings * WAV, WavSettings * AIFF, AiffSettings * AC3, Ac3Settings * EAC3, Eac3Settings * EAC3_ATMOS, Eac3AtmosSettings * VORBIS, VorbisSettings * OPUS, OpusSettings
        public let codecSettings: AudioCodecSettings?
        /// Specify the language for this audio output track. The service puts this language code into your output audio track when you set Language code control (AudioLanguageCodeControl) to Use configured (USE_CONFIGURED). The service also uses your specified custom language code when you set Language code control (AudioLanguageCodeControl) to Follow input (FOLLOW_INPUT), but your input file doesn't specify a language code. For all outputs, you can use an ISO 639-2 or ISO 639-3 code. For streaming outputs, you can also use any other code in the full RFC-5646 specification. Streaming outputs are those that are in one of the following output groups: CMAF, DASH ISO, Apple HLS, or Microsoft Smooth Streaming.
        public let customLanguageCode: String?
        /// Indicates the language of the audio output track. The ISO 639 language specified in the 'Language Code' drop down will be used when 'Follow Input Language Code' is not selected or when 'Follow Input Language Code' is selected but there is no ISO 639 language code specified by the input.
        public let languageCode: LanguageCode?
        /// Specify which source for language code takes precedence for this audio track. When you choose Follow input (FOLLOW_INPUT), the service uses the language code from the input track if it's present. If there's no languge code on the input track, the service uses the code that you specify in the setting Language code (languageCode or customLanguageCode). When you choose Use configured (USE_CONFIGURED), the service uses the language code that you specify.
        public let languageCodeControl: AudioLanguageCodeControl?
        /// Advanced audio remixing settings.
        public let remixSettings: RemixSettings?
        /// Specify a label for this output audio stream. For example, "English", "Director commentary", or "track_2". For streaming outputs, MediaConvert passes this information into destination manifests for display on the end-viewer's player device. For outputs in other output groups, the service ignores this setting.
        public let streamName: String?

        public init(audioChannelTaggingSettings: AudioChannelTaggingSettings? = nil, audioNormalizationSettings: AudioNormalizationSettings? = nil, audioSourceName: String? = nil, audioType: Int? = nil, audioTypeControl: AudioTypeControl? = nil, codecSettings: AudioCodecSettings? = nil, customLanguageCode: String? = nil, languageCode: LanguageCode? = nil, languageCodeControl: AudioLanguageCodeControl? = nil, remixSettings: RemixSettings? = nil, streamName: String? = nil) {
            self.audioChannelTaggingSettings = audioChannelTaggingSettings
            self.audioNormalizationSettings = audioNormalizationSettings
            self.audioSourceName = audioSourceName
            self.audioType = audioType
            self.audioTypeControl = audioTypeControl
            self.codecSettings = codecSettings
            self.customLanguageCode = customLanguageCode
            self.languageCode = languageCode
            self.languageCodeControl = languageCodeControl
            self.remixSettings = remixSettings
            self.streamName = streamName
        }

        public func validate(name: String) throws {
            try self.audioNormalizationSettings?.validate(name: "\(name).audioNormalizationSettings")
            try self.validate(self.audioType, name: "audioType", parent: name, max: 255)
            try self.validate(self.audioType, name: "audioType", parent: name, min: 0)
            try self.codecSettings?.validate(name: "\(name).codecSettings")
            try self.validate(self.customLanguageCode, name: "customLanguageCode", parent: name, pattern: "^[A-Za-z]{2,3}(-[A-Za-z-]+)?$")
            try self.remixSettings?.validate(name: "\(name).remixSettings")
            try self.validate(self.streamName, name: "streamName", parent: name, pattern: "^[\\w\\s]*$")
        }

        private enum CodingKeys: String, CodingKey {
            case audioChannelTaggingSettings
            case audioNormalizationSettings
            case audioSourceName
            case audioType
            case audioTypeControl
            case codecSettings
            case customLanguageCode
            case languageCode
            case languageCodeControl
            case remixSettings
            case streamName
        }
    }

    public struct AudioNormalizationSettings: AWSEncodableShape & AWSDecodableShape {
        /// Choose one of the following audio normalization algorithms: ITU-R BS.1770-1: Ungated loudness. A measurement of ungated average loudness for an entire piece of content, suitable for measurement of short-form content under ATSC recommendation A/85. Supports up to 5.1 audio channels. ITU-R BS.1770-2: Gated loudness. A measurement of gated average loudness compliant with the requirements of EBU-R128. Supports up to 5.1 audio channels. ITU-R BS.1770-3: Modified peak. The same loudness measurement algorithm as 1770-2, with an updated true peak measurement. ITU-R BS.1770-4: Higher channel count. Allows for more audio channels than the other algorithms, including configurations such as 7.1.
        public let algorithm: AudioNormalizationAlgorithm?
        /// When enabled the output audio is corrected using the chosen algorithm. If disabled, the audio will be measured but not adjusted.
        public let algorithmControl: AudioNormalizationAlgorithmControl?
        /// Content measuring above this level will be corrected to the target level. Content measuring below this level will not be corrected.
        public let correctionGateLevel: Int?
        /// If set to LOG, log each output's audio track loudness to a CSV file.
        public let loudnessLogging: AudioNormalizationLoudnessLogging?
        /// If set to TRUE_PEAK, calculate and log the TruePeak for each output's audio track loudness.
        public let peakCalculation: AudioNormalizationPeakCalculation?
        /// When you use Audio normalization (AudioNormalizationSettings), optionally use this setting to specify a target loudness. If you don't specify a value here, the encoder chooses a value for you, based on the algorithm that you choose for Algorithm (algorithm). If you choose algorithm 1770-1, the encoder will choose -24 LKFS; otherwise, the encoder will choose -23 LKFS.
        public let targetLkfs: Double?

        public init(algorithm: AudioNormalizationAlgorithm? = nil, algorithmControl: AudioNormalizationAlgorithmControl? = nil, correctionGateLevel: Int? = nil, loudnessLogging: AudioNormalizationLoudnessLogging? = nil, peakCalculation: AudioNormalizationPeakCalculation? = nil, targetLkfs: Double? = nil) {
            self.algorithm = algorithm
            self.algorithmControl = algorithmControl
            self.correctionGateLevel = correctionGateLevel
            self.loudnessLogging = loudnessLogging
            self.peakCalculation = peakCalculation
            self.targetLkfs = targetLkfs
        }

        public func validate(name: String) throws {
            try self.validate(self.correctionGateLevel, name: "correctionGateLevel", parent: name, max: 0)
            try self.validate(self.correctionGateLevel, name: "correctionGateLevel", parent: name, min: -70)
        }

        private enum CodingKeys: String, CodingKey {
            case algorithm
            case algorithmControl
            case correctionGateLevel
            case loudnessLogging
            case peakCalculation
            case targetLkfs
        }
    }

    public struct AudioSelector: AWSEncodableShape & AWSDecodableShape {
        /// Selects a specific language code from within an audio source, using the ISO 639-2 or ISO 639-3 three-letter language code
        public let customLanguageCode: String?
        /// Enable this setting on one audio selector to set it as the default for the job. The service uses this default for outputs where it can't find the specified input audio. If you don't set a default, those outputs have no audio.
        public let defaultSelection: AudioDefaultSelection?
        /// Specifies audio data from an external file source.
        public let externalAudioFileInput: String?
        /// Selects a specific language code from within an audio source.
        public let languageCode: LanguageCode?
        /// Specifies a time delta in milliseconds to offset the audio from the input video.
        public let offset: Int?
        /// Selects a specific PID from within an audio source (e.g. 257 selects PID 0x101).
        public let pids: [Int]?
        /// Use this setting for input streams that contain Dolby E, to have the service extract specific program data from the track. To select multiple programs, create multiple selectors with the same Track and different Program numbers. In the console, this setting is visible when you set Selector type to Track. Choose the program number from the dropdown list. If you are sending a JSON file, provide the program ID, which is part of the audio metadata. If your input file has incorrect metadata, you can choose All channels instead of a program number to have the service ignore the program IDs and include all the programs in the track.
        public let programSelection: Int?
        /// Use these settings to reorder the audio channels of one input to match those of another input. This allows you to combine the two files into a single output, one after the other.
        public let remixSettings: RemixSettings?
        /// Specifies the type of the audio selector.
        public let selectorType: AudioSelectorType?
        /// Identify a track from the input audio to include in this selector by entering the track index number. To include several tracks in a single audio selector, specify multiple tracks as follows. Using the console, enter a comma-separated list. For examle, type "1,2,3" to include tracks 1 through 3. Specifying directly in your JSON job file, provide the track numbers in an array. For example, "tracks": [1,2,3].
        public let tracks: [Int]?

        public init(customLanguageCode: String? = nil, defaultSelection: AudioDefaultSelection? = nil, externalAudioFileInput: String? = nil, languageCode: LanguageCode? = nil, offset: Int? = nil, pids: [Int]? = nil, programSelection: Int? = nil, remixSettings: RemixSettings? = nil, selectorType: AudioSelectorType? = nil, tracks: [Int]? = nil) {
            self.customLanguageCode = customLanguageCode
            self.defaultSelection = defaultSelection
            self.externalAudioFileInput = externalAudioFileInput
            self.languageCode = languageCode
            self.offset = offset
            self.pids = pids
            self.programSelection = programSelection
            self.remixSettings = remixSettings
            self.selectorType = selectorType
            self.tracks = tracks
        }

        public func validate(name: String) throws {
            try self.validate(self.customLanguageCode, name: "customLanguageCode", parent: name, max: 3)
            try self.validate(self.customLanguageCode, name: "customLanguageCode", parent: name, min: 3)
            try self.validate(self.customLanguageCode, name: "customLanguageCode", parent: name, pattern: "^[A-Za-z]{3}$")
            try self.validate(self.externalAudioFileInput, name: "externalAudioFileInput", parent: name, pattern: "^((s3://([^\\/]+\\/+)+([^\\/\\.]+|(([^\\/]*)\\.([mM]2[pP]|[wW][eE][bB][mM]|[mM]2[vV]|[mM][pP][eE][gG]|[mM][pP]3|[aA][vV][iI]|[mM][pP]4|[fF][lL][vV]|[mM][pP][tT]|[mM][pP][gG]|[mM]4[vV]|[tT][rR][pP]|[fF]4[vV]|[mM]2[tT][sS]|[tT][sS]|264|[hH]264|[mM][kK][vV]|[mM][kK][aA]|[mM][oO][vV]|[mM][tT][sS]|[mM]2[tT]|[wW][mM][vVaA]|[aA][sS][fF]|[vV][oO][bB]|3[gG][pP]|3[gG][pP][pP]|[mM][xX][fF]|[dD][iI][vV][xX]|[xX][vV][iI][dD]|[rR][aA][wW]|[dD][vV]|[gG][xX][fF]|[mM]1[vV]|3[gG]2|[vV][mM][fF]|[mM]3[uU]8|[lL][cC][hH]|[gG][xX][fF]_[mM][pP][eE][gG]2|[mM][xX][fF]_[mM][pP][eE][gG]2|[mM][xX][fF][hH][dD]|[wW][aA][vV]|[yY]4[mM]|[aA][aA][cC]|[aA][iI][fF][fF]|[mM][pP]2|[aA][cC]3|[eE][cC]3|[dD][tT][sS][eE]))))|(https?://([^\\/]+\\/+)+([^\\/\\.]+|(([^\\/]*)\\.([mM]2[vV]|[mM][pP][eE][gG]|[mM][pP]3|[aA][vV][iI]|[mM][pP]4|[fF][lL][vV]|[mM][pP][tT]|[mM][pP][gG]|[mM]4[vV]|[tT][rR][pP]|[fF]4[vV]|[mM]2[tT][sS]|[tT][sS]|264|[hH]264|[mM][kK][vV]|[mM][kK][aA]|[mM][oO][vV]|[mM][tT][sS]|[mM]2[tT]|[wW][mM][vVaA]|[aA][sS][fF]|[vV][oO][bB]|3[gG][pP]|3[gG][pP][pP]|[mM][xX][fF]|[dD][iI][vV][xX]|[xX][vV][iI][dD]|[rR][aA][wW]|[dD][vV]|[gG][xX][fF]|[mM]1[vV]|3[gG]2|[vV][mM][fF]|[mM]3[uU]8|[lL][cC][hH]|[gG][xX][fF]_[mM][pP][eE][gG]2|[mM][xX][fF]_[mM][pP][eE][gG]2|[mM][xX][fF][hH][dD]|[wW][aA][vV]|[yY]4[mM]|[aA][aA][cC]|[aA][iI][fF][fF]|[mM][pP]2|[aA][cC]3|[eE][cC]3|[dD][tT][sS][eE])))(\\?([^&=]+=[^&]+&)*[^&=]+=[^&]+)?))$")
            try self.validate(self.offset, name: "offset", parent: name, max: 2_147_483_647)
            try self.validate(self.offset, name: "offset", parent: name, min: -2_147_483_648)
            try self.pids?.forEach {
                try validate($0, name: "pids[]", parent: name, max: 2_147_483_647)
                try validate($0, name: "pids[]", parent: name, min: 1)
            }
            try self.validate(self.programSelection, name: "programSelection", parent: name, max: 8)
            try self.validate(self.programSelection, name: "programSelection", parent: name, min: 0)
            try self.remixSettings?.validate(name: "\(name).remixSettings")
            try self.tracks?.forEach {
                try validate($0, name: "tracks[]", parent: name, max: 2_147_483_647)
                try validate($0, name: "tracks[]", parent: name, min: 1)
            }
        }

        private enum CodingKeys: String, CodingKey {
            case customLanguageCode
            case defaultSelection
            case externalAudioFileInput
            case languageCode
            case offset
            case pids
            case programSelection
            case remixSettings
            case selectorType
            case tracks
        }
    }

    public struct AudioSelectorGroup: AWSEncodableShape & AWSDecodableShape {
        /// Name of an Audio Selector within the same input to include in the group.  Audio selector names are standardized, based on their order within the input (e.g., "Audio Selector 1"). The audio selector name parameter can be repeated to add any number of audio selectors to the group.
        public let audioSelectorNames: [String]?

        public init(audioSelectorNames: [String]? = nil) {
            self.audioSelectorNames = audioSelectorNames
        }

        public func validate(name: String) throws {
            try self.audioSelectorNames?.forEach {
                try validate($0, name: "audioSelectorNames[]", parent: name, min: 1)
            }
        }

        private enum CodingKeys: String, CodingKey {
            case audioSelectorNames
        }
    }

    public struct AutomatedAbrSettings: AWSEncodableShape & AWSDecodableShape {
        /// Optional. The maximum target bit rate used in your automated ABR stack. Use this value to set an upper limit on the bandwidth consumed by the highest-quality rendition. This is the rendition that is delivered to viewers with the fastest internet connections. If you don't specify a value, MediaConvert uses 8,000,000 (8 mb/s) by default.
        public let maxAbrBitrate: Int?
        /// Optional. The maximum number of renditions that MediaConvert will create in your automated ABR stack. The number of renditions is determined automatically, based on analysis of each job, but will never exceed this limit. When you set this to Auto in the console, which is equivalent to excluding it from your JSON job specification, MediaConvert defaults to a limit of 15.
        public let maxRenditions: Int?
        /// Optional. The minimum target bitrate used in your automated ABR stack. Use this value to set a lower limit on the bitrate of video delivered to viewers with slow internet connections. If you don't specify a value, MediaConvert uses 600,000 (600 kb/s) by default.
        public let minAbrBitrate: Int?

        public init(maxAbrBitrate: Int? = nil, maxRenditions: Int? = nil, minAbrBitrate: Int? = nil) {
            self.maxAbrBitrate = maxAbrBitrate
            self.maxRenditions = maxRenditions
            self.minAbrBitrate = minAbrBitrate
        }

        public func validate(name: String) throws {
            try self.validate(self.maxAbrBitrate, name: "maxAbrBitrate", parent: name, max: 100_000_000)
            try self.validate(self.maxAbrBitrate, name: "maxAbrBitrate", parent: name, min: 100_000)
            try self.validate(self.maxRenditions, name: "maxRenditions", parent: name, max: 15)
            try self.validate(self.maxRenditions, name: "maxRenditions", parent: name, min: 3)
            try self.validate(self.minAbrBitrate, name: "minAbrBitrate", parent: name, max: 100_000_000)
            try self.validate(self.minAbrBitrate, name: "minAbrBitrate", parent: name, min: 100_000)
        }

        private enum CodingKeys: String, CodingKey {
            case maxAbrBitrate
            case maxRenditions
            case minAbrBitrate
        }
    }

    public struct AutomatedEncodingSettings: AWSEncodableShape & AWSDecodableShape {
        /// Use automated ABR to have MediaConvert set up the renditions in your ABR package for you automatically, based on characteristics of your input video. This feature optimizes video quality while minimizing the overall size of your ABR package.
        public let abrSettings: AutomatedAbrSettings?

        public init(abrSettings: AutomatedAbrSettings? = nil) {
            self.abrSettings = abrSettings
        }

        public func validate(name: String) throws {
            try self.abrSettings?.validate(name: "\(name).abrSettings")
        }

        private enum CodingKeys: String, CodingKey {
            case abrSettings
        }
    }

    public struct Av1QvbrSettings: AWSEncodableShape & AWSDecodableShape {
        /// Required when you use QVBR rate control mode. That is, when you specify qvbrSettings within av1Settings. Specify the general target quality level for this output, from 1 to 10. Use higher numbers for greater quality. Level 10 results in nearly lossless compression. The quality level for most broadcast-quality transcodes is between 6 and 9. Optionally, to specify a value between whole numbers, also provide a value for the setting qvbrQualityLevelFineTune. For example, if you want your QVBR quality level to be 7.33, set qvbrQualityLevel to 7 and set qvbrQualityLevelFineTune to .33.
        public let qvbrQualityLevel: Int?
        /// Optional. Specify a value here to set the QVBR quality to a level that is between whole numbers. For example, if you want your QVBR quality level to be 7.33, set qvbrQualityLevel to 7 and set qvbrQualityLevelFineTune to .33. MediaConvert rounds your QVBR quality level to the nearest third of a whole number. For example, if you set qvbrQualityLevel to 7 and you set qvbrQualityLevelFineTune to .25, your actual QVBR quality level is 7.33.
        public let qvbrQualityLevelFineTune: Double?

        public init(qvbrQualityLevel: Int? = nil, qvbrQualityLevelFineTune: Double? = nil) {
            self.qvbrQualityLevel = qvbrQualityLevel
            self.qvbrQualityLevelFineTune = qvbrQualityLevelFineTune
        }

        public func validate(name: String) throws {
            try self.validate(self.qvbrQualityLevel, name: "qvbrQualityLevel", parent: name, max: 10)
            try self.validate(self.qvbrQualityLevel, name: "qvbrQualityLevel", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case qvbrQualityLevel
            case qvbrQualityLevelFineTune
        }
    }

    public struct Av1Settings: AWSEncodableShape & AWSDecodableShape {
        /// Specify the strength of any adaptive quantization filters that you enable. The value that you choose here applies to Spatial adaptive quantization (spatialAdaptiveQuantization).
        public let adaptiveQuantization: Av1AdaptiveQuantization?
        /// If you are using the console, use the Framerate setting to specify the frame rate for this output. If you want to keep the same frame rate as the input video, choose Follow source. If you want to do frame rate conversion, choose a frame rate from the dropdown list or choose Custom. The framerates shown in the dropdown list are decimal approximations of fractions. If you choose Custom, specify your frame rate as a fraction. If you are creating your transcoding job specification as a JSON file without the console, use FramerateControl to specify which value the service uses for the frame rate for this output. Choose INITIALIZE_FROM_SOURCE if you want the service to use the frame rate from the input. Choose SPECIFIED if you want the service to use the frame rate you specify in the settings FramerateNumerator and FramerateDenominator.
        public let framerateControl: Av1FramerateControl?
        /// Choose the method that you want MediaConvert to use when increasing or decreasing the frame rate. We recommend using drop duplicate (DUPLICATE_DROP) for numerically simple conversions, such as 60 fps to 30 fps. For numerically complex conversions, you can use interpolate (INTERPOLATE) to avoid stutter. This results in a smooth picture, but might introduce undesirable video artifacts. For complex frame rate conversions, especially if your source video has already been converted from its original cadence, use FrameFormer (FRAMEFORMER) to do motion-compensated interpolation. FrameFormer chooses the best conversion method frame by frame. Note that using FrameFormer increases the transcoding time and incurs a significant add-on cost.
        public let framerateConversionAlgorithm: Av1FramerateConversionAlgorithm?
        /// When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example,  24000 / 1001 = 23.976 fps. Use FramerateDenominator to specify the denominator of this fraction. In this example, use 1001 for the value of FramerateDenominator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
        public let framerateDenominator: Int?
        /// When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example,  24000 / 1001 = 23.976 fps. Use FramerateNumerator to specify the numerator of this fraction. In this example, use 24000 for the value of FramerateNumerator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
        public let framerateNumerator: Int?
        /// Specify the GOP length (keyframe interval) in frames. With AV1, MediaConvert doesn't support GOP length in seconds. This value must be greater than zero and preferably equal to 1 + ((numberBFrames + 1) * x), where x is an integer value.
        public let gopSize: Double?
        /// Maximum bitrate in bits/second. For example, enter five megabits per second as 5000000. Required when Rate control mode is QVBR.
        public let maxBitrate: Int?
        /// Specify the number of B-frames. With AV1, MediaConvert supports only 7 or 15.
        public let numberBFramesBetweenReferenceFrames: Int?
        /// Settings for quality-defined variable bitrate encoding with the AV1 codec. Required when you set Rate control mode to QVBR. Not valid when you set Rate control mode to a value other than QVBR, or when you don't define Rate control mode.
        public let qvbrSettings: Av1QvbrSettings?
        /// 'With AV1 outputs, for rate control mode, MediaConvert supports only quality-defined variable bitrate (QVBR). You can''t use CBR or VBR.'
        public let rateControlMode: Av1RateControlMode?
        /// Specify the number of slices per picture. This value must be 1, 2, 4, 8, 16, or 32. For progressive pictures, this value must be less than or equal to the number of macroblock rows. For interlaced pictures, this value must be less than or equal to half the number of macroblock rows.
        public let slices: Int?
        /// Keep the default value, Enabled (ENABLED), to adjust quantization within each frame based on spatial variation of content complexity. When you enable this feature, the encoder uses fewer bits on areas that can sustain more distortion with no noticeable visual degradation and uses more bits on areas where any small distortion will be noticeable. For example, complex textured blocks are encoded with fewer bits and smooth textured blocks are encoded with more bits. Enabling this feature will almost always improve your video quality. Note, though, that this feature doesn't take into account where the viewer's attention is likely to be. If viewers are likely to be focusing their attention on a part of the screen with a lot of complex texture, you might choose to disable this feature. Related setting: When you enable spatial adaptive quantization, set the value for Adaptive quantization (adaptiveQuantization) depending on your content. For homogeneous content, such as cartoons and video games, set it to Low. For content with a wider variety of textures, set it to High or Higher.
        public let spatialAdaptiveQuantization: Av1SpatialAdaptiveQuantization?

        public init(adaptiveQuantization: Av1AdaptiveQuantization? = nil, framerateControl: Av1FramerateControl? = nil, framerateConversionAlgorithm: Av1FramerateConversionAlgorithm? = nil, framerateDenominator: Int? = nil, framerateNumerator: Int? = nil, gopSize: Double? = nil, maxBitrate: Int? = nil, numberBFramesBetweenReferenceFrames: Int? = nil, qvbrSettings: Av1QvbrSettings? = nil, rateControlMode: Av1RateControlMode? = nil, slices: Int? = nil, spatialAdaptiveQuantization: Av1SpatialAdaptiveQuantization? = nil) {
            self.adaptiveQuantization = adaptiveQuantization
            self.framerateControl = framerateControl
            self.framerateConversionAlgorithm = framerateConversionAlgorithm
            self.framerateDenominator = framerateDenominator
            self.framerateNumerator = framerateNumerator
            self.gopSize = gopSize
            self.maxBitrate = maxBitrate
            self.numberBFramesBetweenReferenceFrames = numberBFramesBetweenReferenceFrames
            self.qvbrSettings = qvbrSettings
            self.rateControlMode = rateControlMode
            self.slices = slices
            self.spatialAdaptiveQuantization = spatialAdaptiveQuantization
        }

        public func validate(name: String) throws {
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, max: 2_147_483_647)
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, min: 1)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, max: 2_147_483_647)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, min: 1)
            try self.validate(self.maxBitrate, name: "maxBitrate", parent: name, max: 1_152_000_000)
            try self.validate(self.maxBitrate, name: "maxBitrate", parent: name, min: 1000)
            try self.validate(self.numberBFramesBetweenReferenceFrames, name: "numberBFramesBetweenReferenceFrames", parent: name, max: 15)
            try self.validate(self.numberBFramesBetweenReferenceFrames, name: "numberBFramesBetweenReferenceFrames", parent: name, min: 7)
            try self.qvbrSettings?.validate(name: "\(name).qvbrSettings")
            try self.validate(self.slices, name: "slices", parent: name, max: 32)
            try self.validate(self.slices, name: "slices", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case adaptiveQuantization
            case framerateControl
            case framerateConversionAlgorithm
            case framerateDenominator
            case framerateNumerator
            case gopSize
            case maxBitrate
            case numberBFramesBetweenReferenceFrames
            case qvbrSettings
            case rateControlMode
            case slices
            case spatialAdaptiveQuantization
        }
    }

    public struct AvailBlanking: AWSEncodableShape & AWSDecodableShape {
        /// Blanking image to be used. Leave empty for solid black. Only bmp and png images are supported.
        public let availBlankingImage: String?

        public init(availBlankingImage: String? = nil) {
            self.availBlankingImage = availBlankingImage
        }

        public func validate(name: String) throws {
            try self.validate(self.availBlankingImage, name: "availBlankingImage", parent: name, min: 14)
            try self.validate(self.availBlankingImage, name: "availBlankingImage", parent: name, pattern: "^((s3://(.*?)\\.(bmp|BMP|png|PNG))|(https?://(.*?)\\.(bmp|BMP|png|PNG)(\\?([^&=]+=[^&]+&)*[^&=]+=[^&]+)?))$")
        }

        private enum CodingKeys: String, CodingKey {
            case availBlankingImage
        }
    }

    public struct AvcIntraSettings: AWSEncodableShape & AWSDecodableShape {
        /// Specify the AVC-Intra class of your output. The AVC-Intra class selection determines the output video bit rate depending on the frame rate of the output. Outputs with higher class values have higher bitrates and improved image quality. Note that for Class 4K/2K, MediaConvert supports only 4:2:2 chroma subsampling.
        public let avcIntraClass: AvcIntraClass?
        /// Optional when you set AVC-Intra class (avcIntraClass) to Class 4K/2K (CLASS_4K_2K). When you set AVC-Intra class to a different value, this object isn't allowed.
        public let avcIntraUhdSettings: AvcIntraUhdSettings?
        /// If you are using the console, use the Framerate setting to specify the frame rate for this output. If you want to keep the same frame rate as the input video, choose Follow source. If you want to do frame rate conversion, choose a frame rate from the dropdown list or choose Custom. The framerates shown in the dropdown list are decimal approximations of fractions. If you choose Custom, specify your frame rate as a fraction. If you are creating your transcoding job specification as a JSON file without the console, use FramerateControl to specify which value the service uses for the frame rate for this output. Choose INITIALIZE_FROM_SOURCE if you want the service to use the frame rate from the input. Choose SPECIFIED if you want the service to use the frame rate you specify in the settings FramerateNumerator and FramerateDenominator.
        public let framerateControl: AvcIntraFramerateControl?
        /// Choose the method that you want MediaConvert to use when increasing or decreasing the frame rate. We recommend using drop duplicate (DUPLICATE_DROP) for numerically simple conversions, such as 60 fps to 30 fps. For numerically complex conversions, you can use interpolate (INTERPOLATE) to avoid stutter. This results in a smooth picture, but might introduce undesirable video artifacts. For complex frame rate conversions, especially if your source video has already been converted from its original cadence, use FrameFormer (FRAMEFORMER) to do motion-compensated interpolation. FrameFormer chooses the best conversion method frame by frame. Note that using FrameFormer increases the transcoding time and incurs a significant add-on cost.
        public let framerateConversionAlgorithm: AvcIntraFramerateConversionAlgorithm?
        /// When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example,  24000 / 1001 = 23.976 fps. Use FramerateDenominator to specify the denominator of this fraction. In this example, use 1001 for the value of FramerateDenominator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
        public let framerateDenominator: Int?
        /// When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example,  24000 / 1001 = 23.976 fps. Use FramerateNumerator to specify the numerator of this fraction. In this example, use 24000 for the value of FramerateNumerator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
        public let framerateNumerator: Int?
        /// Choose the scan line type for the output. Keep the default value, Progressive (PROGRESSIVE) to create a progressive output, regardless of the scan type of your input. Use Top field first (TOP_FIELD) or Bottom field first (BOTTOM_FIELD) to create an output that's interlaced with the same field polarity throughout. Use Follow, default top (FOLLOW_TOP_FIELD) or Follow, default bottom (FOLLOW_BOTTOM_FIELD) to produce outputs with the same field polarity as the source. For jobs that have multiple inputs, the output field polarity might change over the course of the output. Follow behavior depends on the input scan type. If the source is interlaced, the output will be interlaced with the same polarity as the source. If the source is progressive, the output will be interlaced with top field bottom field first, depending on which of the Follow options you choose.
        public let interlaceMode: AvcIntraInterlaceMode?
        /// Use this setting for interlaced outputs, when your output frame rate is half of your input frame rate. In this situation, choose Optimized interlacing (INTERLACED_OPTIMIZE) to create a better quality interlaced output. In this case, each progressive frame from the input corresponds to an interlaced field in the output. Keep the default value, Basic interlacing (INTERLACED), for all other output frame rates. With basic interlacing, MediaConvert performs any frame rate conversion first and then interlaces the frames. When you choose Optimized interlacing and you set your output frame rate to a value that isn't suitable for optimized interlacing, MediaConvert automatically falls back to basic interlacing. Required settings: To use optimized interlacing, you must set Telecine (telecine) to None (NONE) or Soft (SOFT). You can't use optimized interlacing for hard telecine outputs. You must also set Interlace mode (interlaceMode) to a value other than Progressive (PROGRESSIVE).
        public let scanTypeConversionMode: AvcIntraScanTypeConversionMode?
        /// Ignore this setting unless your input frame rate is 23.976 or 24 frames per second (fps). Enable slow PAL to create a 25 fps output. When you enable slow PAL, MediaConvert relabels the video frames to 25 fps and resamples your audio to keep it synchronized with the video. Note that enabling this setting will slightly reduce the duration of your video. Required settings: You must also set Framerate to 25. In your JSON job specification, set (framerateControl) to (SPECIFIED), (framerateNumerator) to 25 and (framerateDenominator) to 1.
        public let slowPal: AvcIntraSlowPal?
        /// When you do frame rate conversion from 23.976 frames per second (fps) to 29.97 fps, and your output scan type is interlaced, you can optionally enable hard telecine (HARD) to create a smoother picture. When you keep the default value, None (NONE), MediaConvert does a standard frame rate conversion to 29.97 without doing anything with the field polarity to create a smoother picture.
        public let telecine: AvcIntraTelecine?

        public init(avcIntraClass: AvcIntraClass? = nil, avcIntraUhdSettings: AvcIntraUhdSettings? = nil, framerateControl: AvcIntraFramerateControl? = nil, framerateConversionAlgorithm: AvcIntraFramerateConversionAlgorithm? = nil, framerateDenominator: Int? = nil, framerateNumerator: Int? = nil, interlaceMode: AvcIntraInterlaceMode? = nil, scanTypeConversionMode: AvcIntraScanTypeConversionMode? = nil, slowPal: AvcIntraSlowPal? = nil, telecine: AvcIntraTelecine? = nil) {
            self.avcIntraClass = avcIntraClass
            self.avcIntraUhdSettings = avcIntraUhdSettings
            self.framerateControl = framerateControl
            self.framerateConversionAlgorithm = framerateConversionAlgorithm
            self.framerateDenominator = framerateDenominator
            self.framerateNumerator = framerateNumerator
            self.interlaceMode = interlaceMode
            self.scanTypeConversionMode = scanTypeConversionMode
            self.slowPal = slowPal
            self.telecine = telecine
        }

        public func validate(name: String) throws {
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, max: 1001)
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, min: 1)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, max: 60000)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, min: 24)
        }

        private enum CodingKeys: String, CodingKey {
            case avcIntraClass
            case avcIntraUhdSettings
            case framerateControl
            case framerateConversionAlgorithm
            case framerateDenominator
            case framerateNumerator
            case interlaceMode
            case scanTypeConversionMode
            case slowPal
            case telecine
        }
    }

    public struct AvcIntraUhdSettings: AWSEncodableShape & AWSDecodableShape {
        /// Optional. Use Quality tuning level (qualityTuningLevel) to choose how many transcoding passes MediaConvert does with your video. When you choose Multi-pass (MULTI_PASS), your video quality is better and your output bitrate is more accurate. That is, the actual bitrate of your output is closer to the target bitrate defined in the specification. When you choose Single-pass (SINGLE_PASS), your encoding time is faster. The default behavior is Single-pass (SINGLE_PASS).
        public let qualityTuningLevel: AvcIntraUhdQualityTuningLevel?

        public init(qualityTuningLevel: AvcIntraUhdQualityTuningLevel? = nil) {
            self.qualityTuningLevel = qualityTuningLevel
        }

        private enum CodingKeys: String, CodingKey {
            case qualityTuningLevel
        }
    }

    public struct BurninDestinationSettings: AWSEncodableShape & AWSDecodableShape {
        /// If no explicit x_position or y_position is provided, setting alignment to centered will place the captions at the bottom center of the output. Similarly, setting a left alignment will align captions to the bottom left of the output. If x and y positions are given in conjunction with the alignment parameter, the font will be justified (either left or centered) relative to those coordinates. This option is not valid for source captions that are STL, 608/embedded or teletext. These source settings are already pre-defined by the caption stream. All burn-in and DVB-Sub font settings must match.
        public let alignment: BurninSubtitleAlignment?
        /// Specifies the color of the rectangle behind the captions.
        /// All burn-in and DVB-Sub font settings must match.
        public let backgroundColor: BurninSubtitleBackgroundColor?
        /// Specifies the opacity of the background rectangle. 255 is opaque; 0 is transparent. Leaving this parameter blank is equivalent to setting it to 0 (transparent). All burn-in and DVB-Sub font settings must match.
        public let backgroundOpacity: Int?
        /// Specifies the color of the burned-in captions. This option is not valid for source captions that are STL, 608/embedded or teletext. These source settings are already pre-defined by the caption stream. All burn-in and DVB-Sub font settings must match.
        public let fontColor: BurninSubtitleFontColor?
        /// Specifies the opacity of the burned-in captions. 255 is opaque; 0 is transparent.
        /// All burn-in and DVB-Sub font settings must match.
        public let fontOpacity: Int?
        /// Font resolution in DPI (dots per inch); default is 96 dpi.
        /// All burn-in and DVB-Sub font settings must match.
        public let fontResolution: Int?
        /// Provide the font script, using an ISO 15924 script code, if the LanguageCode is not sufficient for determining the script type. Where LanguageCode or CustomLanguageCode is sufficient, use "AUTOMATIC" or leave unset. This is used to help determine the appropriate font for rendering burn-in captions.
        public let fontScript: FontScript?
        /// A positive integer indicates the exact font size in points. Set to 0 for automatic font size selection. All burn-in and DVB-Sub font settings must match.
        public let fontSize: Int?
        /// Specifies font outline color. This option is not valid for source captions that are either 608/embedded or teletext. These source settings are already pre-defined by the caption stream. All burn-in and DVB-Sub font settings must match.
        public let outlineColor: BurninSubtitleOutlineColor?
        /// Specifies font outline size in pixels. This option is not valid for source captions that are either 608/embedded or teletext. These source settings are already pre-defined by the caption stream. All burn-in and DVB-Sub font settings must match.
        public let outlineSize: Int?
        /// Specifies the color of the shadow cast by the captions.
        /// All burn-in and DVB-Sub font settings must match.
        public let shadowColor: BurninSubtitleShadowColor?
        /// Specifies the opacity of the shadow. 255 is opaque; 0 is transparent. Leaving this parameter blank is equivalent to setting it to 0 (transparent). All burn-in and DVB-Sub font settings must match.
        public let shadowOpacity: Int?
        /// Specifies the horizontal offset of the shadow relative to the captions in pixels. A value of -2 would result in a shadow offset 2 pixels to the left. All burn-in and DVB-Sub font settings must match.
        public let shadowXOffset: Int?
        /// Specifies the vertical offset of the shadow relative to the captions in pixels. A value of -2 would result in a shadow offset 2 pixels above the text. All burn-in and DVB-Sub font settings must match.
        public let shadowYOffset: Int?
        /// Only applies to jobs with input captions in Teletext or STL formats. Specify whether the spacing between letters in your captions is set by the captions grid or varies depending on letter width. Choose fixed grid to conform to the spacing specified in the captions file more accurately. Choose proportional to make the text easier to read if the captions are closed caption.
        public let teletextSpacing: BurninSubtitleTeletextSpacing?
        /// Specifies the horizontal position of the caption relative to the left side of the output in pixels. A value of 10 would result in the captions starting 10 pixels from the left of the output. If no explicit x_position is provided, the horizontal caption position will be determined by the alignment parameter. This option is not valid for source captions that are STL, 608/embedded or teletext. These source settings are already pre-defined by the caption stream. All burn-in and DVB-Sub font settings must match.
        public let xPosition: Int?
        /// Specifies the vertical position of the caption relative to the top of the output in pixels. A value of 10 would result in the captions starting 10 pixels from the top of the output. If no explicit y_position is provided, the caption will be positioned towards the bottom of the output. This option is not valid for source captions that are STL, 608/embedded or teletext. These source settings are already pre-defined by the caption stream. All burn-in and DVB-Sub font settings must match.
        public let yPosition: Int?

        public init(alignment: BurninSubtitleAlignment? = nil, backgroundColor: BurninSubtitleBackgroundColor? = nil, backgroundOpacity: Int? = nil, fontColor: BurninSubtitleFontColor? = nil, fontOpacity: Int? = nil, fontResolution: Int? = nil, fontScript: FontScript? = nil, fontSize: Int? = nil, outlineColor: BurninSubtitleOutlineColor? = nil, outlineSize: Int? = nil, shadowColor: BurninSubtitleShadowColor? = nil, shadowOpacity: Int? = nil, shadowXOffset: Int? = nil, shadowYOffset: Int? = nil, teletextSpacing: BurninSubtitleTeletextSpacing? = nil, xPosition: Int? = nil, yPosition: Int? = nil) {
            self.alignment = alignment
            self.backgroundColor = backgroundColor
            self.backgroundOpacity = backgroundOpacity
            self.fontColor = fontColor
            self.fontOpacity = fontOpacity
            self.fontResolution = fontResolution
            self.fontScript = fontScript
            self.fontSize = fontSize
            self.outlineColor = outlineColor
            self.outlineSize = outlineSize
            self.shadowColor = shadowColor
            self.shadowOpacity = shadowOpacity
            self.shadowXOffset = shadowXOffset
            self.shadowYOffset = shadowYOffset
            self.teletextSpacing = teletextSpacing
            self.xPosition = xPosition
            self.yPosition = yPosition
        }

        public func validate(name: String) throws {
            try self.validate(self.backgroundOpacity, name: "backgroundOpacity", parent: name, max: 255)
            try self.validate(self.backgroundOpacity, name: "backgroundOpacity", parent: name, min: 0)
            try self.validate(self.fontOpacity, name: "fontOpacity", parent: name, max: 255)
            try self.validate(self.fontOpacity, name: "fontOpacity", parent: name, min: 0)
            try self.validate(self.fontResolution, name: "fontResolution", parent: name, max: 600)
            try self.validate(self.fontResolution, name: "fontResolution", parent: name, min: 96)
            try self.validate(self.fontSize, name: "fontSize", parent: name, max: 96)
            try self.validate(self.fontSize, name: "fontSize", parent: name, min: 0)
            try self.validate(self.outlineSize, name: "outlineSize", parent: name, max: 10)
            try self.validate(self.outlineSize, name: "outlineSize", parent: name, min: 0)
            try self.validate(self.shadowOpacity, name: "shadowOpacity", parent: name, max: 255)
            try self.validate(self.shadowOpacity, name: "shadowOpacity", parent: name, min: 0)
            try self.validate(self.shadowXOffset, name: "shadowXOffset", parent: name, max: 2_147_483_647)
            try self.validate(self.shadowXOffset, name: "shadowXOffset", parent: name, min: -2_147_483_648)
            try self.validate(self.shadowYOffset, name: "shadowYOffset", parent: name, max: 2_147_483_647)
            try self.validate(self.shadowYOffset, name: "shadowYOffset", parent: name, min: -2_147_483_648)
            try self.validate(self.xPosition, name: "xPosition", parent: name, max: 2_147_483_647)
            try self.validate(self.xPosition, name: "xPosition", parent: name, min: 0)
            try self.validate(self.yPosition, name: "yPosition", parent: name, max: 2_147_483_647)
            try self.validate(self.yPosition, name: "yPosition", parent: name, min: 0)
        }

        private enum CodingKeys: String, CodingKey {
            case alignment
            case backgroundColor
            case backgroundOpacity
            case fontColor
            case fontOpacity
            case fontResolution
            case fontScript
            case fontSize
            case outlineColor
            case outlineSize
            case shadowColor
            case shadowOpacity
            case shadowXOffset
            case shadowYOffset
            case teletextSpacing
            case xPosition
            case yPosition
        }
    }

    public struct CancelJobRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "id", location: .uri(locationName: "id"))
        ]

        /// The Job ID of the job to be cancelled.
        public let id: String

        public init(id: String) {
            self.id = id
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct CancelJobResponse: AWSDecodableShape {
        public init() {}
    }

    public struct CaptionDescription: AWSEncodableShape & AWSDecodableShape {
        /// Specifies which "Caption Selector":#inputs-caption_selector to use from each input when generating captions. The name should be of the format "Caption Selector ", which denotes that the Nth Caption Selector will be used from each input.
        public let captionSelectorName: String?
        /// Specify the language for this captions output track. For most captions output formats, the encoder puts this language information in the output captions metadata. If your output captions format is DVB-Sub or Burn in, the encoder uses this language information when automatically selecting the font script for rendering the captions text. For all outputs, you can use an ISO 639-2 or ISO 639-3 code. For streaming outputs, you can also use any other code in the full RFC-5646 specification. Streaming outputs are those that are in one of the following output groups: CMAF, DASH ISO, Apple HLS, or Microsoft Smooth Streaming.
        public let customLanguageCode: String?
        /// Specific settings required by destination type. Note that burnin_destination_settings are not available if the source of the caption data is Embedded or Teletext.
        public let destinationSettings: CaptionDestinationSettings?
        /// Specify the language of this captions output track. For most captions output formats, the encoder puts this language information in the output captions metadata. If your output captions format is DVB-Sub or Burn in, the encoder uses this language information to choose the font language for rendering the captions text.
        public let languageCode: LanguageCode?
        /// Specify a label for this set of output captions. For example, "English", "Director commentary", or "track_2". For streaming outputs, MediaConvert passes this information into destination manifests for display on the end-viewer's player device. For outputs in other output groups, the service ignores this setting.
        public let languageDescription: String?

        public init(captionSelectorName: String? = nil, customLanguageCode: String? = nil, destinationSettings: CaptionDestinationSettings? = nil, languageCode: LanguageCode? = nil, languageDescription: String? = nil) {
            self.captionSelectorName = captionSelectorName
            self.customLanguageCode = customLanguageCode
            self.destinationSettings = destinationSettings
            self.languageCode = languageCode
            self.languageDescription = languageDescription
        }

        public func validate(name: String) throws {
            try self.validate(self.captionSelectorName, name: "captionSelectorName", parent: name, min: 1)
            try self.validate(self.customLanguageCode, name: "customLanguageCode", parent: name, pattern: "^[A-Za-z]{2,3}(-[A-Za-z-]+)?$")
            try self.destinationSettings?.validate(name: "\(name).destinationSettings")
        }

        private enum CodingKeys: String, CodingKey {
            case captionSelectorName
            case customLanguageCode
            case destinationSettings
            case languageCode
            case languageDescription
        }
    }

    public struct CaptionDescriptionPreset: AWSEncodableShape & AWSDecodableShape {
        /// Specify the language for this captions output track. For most captions output formats, the encoder puts this language information in the output captions metadata. If your output captions format is DVB-Sub or Burn in, the encoder uses this language information when automatically selecting the font script for rendering the captions text. For all outputs, you can use an ISO 639-2 or ISO 639-3 code. For streaming outputs, you can also use any other code in the full RFC-5646 specification. Streaming outputs are those that are in one of the following output groups: CMAF, DASH ISO, Apple HLS, or Microsoft Smooth Streaming.
        public let customLanguageCode: String?
        /// Specific settings required by destination type. Note that burnin_destination_settings are not available if the source of the caption data is Embedded or Teletext.
        public let destinationSettings: CaptionDestinationSettings?
        /// Specify the language of this captions output track. For most captions output formats, the encoder puts this language information in the output captions metadata. If your output captions format is DVB-Sub or Burn in, the encoder uses this language information to choose the font language for rendering the captions text.
        public let languageCode: LanguageCode?
        /// Specify a label for this set of output captions. For example, "English", "Director commentary", or "track_2". For streaming outputs, MediaConvert passes this information into destination manifests for display on the end-viewer's player device. For outputs in other output groups, the service ignores this setting.
        public let languageDescription: String?

        public init(customLanguageCode: String? = nil, destinationSettings: CaptionDestinationSettings? = nil, languageCode: LanguageCode? = nil, languageDescription: String? = nil) {
            self.customLanguageCode = customLanguageCode
            self.destinationSettings = destinationSettings
            self.languageCode = languageCode
            self.languageDescription = languageDescription
        }

        public func validate(name: String) throws {
            try self.validate(self.customLanguageCode, name: "customLanguageCode", parent: name, pattern: "^[A-Za-z]{2,3}(-[A-Za-z-]+)?$")
            try self.destinationSettings?.validate(name: "\(name).destinationSettings")
        }

        private enum CodingKeys: String, CodingKey {
            case customLanguageCode
            case destinationSettings
            case languageCode
            case languageDescription
        }
    }

    public struct CaptionDestinationSettings: AWSEncodableShape & AWSDecodableShape {
        /// Burn-In Destination Settings.
        public let burninDestinationSettings: BurninDestinationSettings?
        /// Specify the format for this set of captions on this output. The default format is embedded without SCTE-20. Other options are embedded with SCTE-20, burn-in, DVB-sub, IMSC, SCC, SRT, teletext, TTML, and web-VTT. If you are using SCTE-20, choose SCTE-20 plus embedded (SCTE20_PLUS_EMBEDDED) to create an output that complies with the SCTE-43 spec. To create a non-compliant output where the embedded captions come first, choose Embedded plus SCTE-20 (EMBEDDED_PLUS_SCTE20).
        public let destinationType: CaptionDestinationType?
        /// DVB-Sub Destination Settings
        public let dvbSubDestinationSettings: DvbSubDestinationSettings?
        /// Settings specific to embedded/ancillary caption outputs, including 608/708 Channel destination number.
        public let embeddedDestinationSettings: EmbeddedDestinationSettings?
        /// Settings specific to IMSC caption outputs.
        public let imscDestinationSettings: ImscDestinationSettings?
        /// Settings for SCC caption output.
        public let sccDestinationSettings: SccDestinationSettings?
        /// Settings for Teletext caption output
        public let teletextDestinationSettings: TeletextDestinationSettings?
        /// Settings specific to TTML caption outputs, including Pass style information (TtmlStylePassthrough).
        public let ttmlDestinationSettings: TtmlDestinationSettings?

        public init(burninDestinationSettings: BurninDestinationSettings? = nil, destinationType: CaptionDestinationType? = nil, dvbSubDestinationSettings: DvbSubDestinationSettings? = nil, embeddedDestinationSettings: EmbeddedDestinationSettings? = nil, imscDestinationSettings: ImscDestinationSettings? = nil, sccDestinationSettings: SccDestinationSettings? = nil, teletextDestinationSettings: TeletextDestinationSettings? = nil, ttmlDestinationSettings: TtmlDestinationSettings? = nil) {
            self.burninDestinationSettings = burninDestinationSettings
            self.destinationType = destinationType
            self.dvbSubDestinationSettings = dvbSubDestinationSettings
            self.embeddedDestinationSettings = embeddedDestinationSettings
            self.imscDestinationSettings = imscDestinationSettings
            self.sccDestinationSettings = sccDestinationSettings
            self.teletextDestinationSettings = teletextDestinationSettings
            self.ttmlDestinationSettings = ttmlDestinationSettings
        }

        public func validate(name: String) throws {
            try self.burninDestinationSettings?.validate(name: "\(name).burninDestinationSettings")
            try self.dvbSubDestinationSettings?.validate(name: "\(name).dvbSubDestinationSettings")
            try self.embeddedDestinationSettings?.validate(name: "\(name).embeddedDestinationSettings")
            try self.teletextDestinationSettings?.validate(name: "\(name).teletextDestinationSettings")
        }

        private enum CodingKeys: String, CodingKey {
            case burninDestinationSettings
            case destinationType
            case dvbSubDestinationSettings
            case embeddedDestinationSettings
            case imscDestinationSettings
            case sccDestinationSettings
            case teletextDestinationSettings
            case ttmlDestinationSettings
        }
    }

    public struct CaptionSelector: AWSEncodableShape & AWSDecodableShape {
        /// The specific language to extract from source, using the ISO 639-2 or ISO 639-3 three-letter language code. If input is SCTE-27, complete this field and/or PID to select the caption language to extract. If input is DVB-Sub and output is Burn-in or SMPTE-TT, complete this field and/or PID to select the caption language to extract. If input is DVB-Sub that is being passed through, omit this field (and PID field); there is no way to extract a specific language with pass-through captions.
        public let customLanguageCode: String?
        /// The specific language to extract from source. If input is SCTE-27, complete this field and/or PID to select the caption language to extract. If input is DVB-Sub and output is Burn-in or SMPTE-TT, complete this field and/or PID to select the caption language to extract. If input is DVB-Sub that is being passed through, omit this field (and PID field); there is no way to extract a specific language with pass-through captions.
        public let languageCode: LanguageCode?
        /// If your input captions are SCC, TTML, STL, SMI, SRT, or IMSC in an xml file, specify the URI of the input captions source file. If your input captions are IMSC in an IMF package, use TrackSourceSettings instead of FileSoureSettings.
        public let sourceSettings: CaptionSourceSettings?

        public init(customLanguageCode: String? = nil, languageCode: LanguageCode? = nil, sourceSettings: CaptionSourceSettings? = nil) {
            self.customLanguageCode = customLanguageCode
            self.languageCode = languageCode
            self.sourceSettings = sourceSettings
        }

        public func validate(name: String) throws {
            try self.validate(self.customLanguageCode, name: "customLanguageCode", parent: name, max: 3)
            try self.validate(self.customLanguageCode, name: "customLanguageCode", parent: name, min: 3)
            try self.validate(self.customLanguageCode, name: "customLanguageCode", parent: name, pattern: "^[A-Za-z]{3}$")
            try self.sourceSettings?.validate(name: "\(name).sourceSettings")
        }

        private enum CodingKeys: String, CodingKey {
            case customLanguageCode
            case languageCode
            case sourceSettings
        }
    }

    public struct CaptionSourceFramerate: AWSEncodableShape & AWSDecodableShape {
        /// Specify the denominator of the fraction that represents the frame rate for the setting Caption source frame rate (CaptionSourceFramerate). Use this setting along with the setting Framerate numerator (framerateNumerator).
        public let framerateDenominator: Int?
        /// Specify the numerator of the fraction that represents the frame rate for the setting Caption source frame rate (CaptionSourceFramerate). Use this setting along with the setting Framerate denominator (framerateDenominator).
        public let framerateNumerator: Int?

        public init(framerateDenominator: Int? = nil, framerateNumerator: Int? = nil) {
            self.framerateDenominator = framerateDenominator
            self.framerateNumerator = framerateNumerator
        }

        public func validate(name: String) throws {
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, max: 1001)
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, min: 1)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, max: 60000)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case framerateDenominator
            case framerateNumerator
        }
    }

    public struct CaptionSourceSettings: AWSEncodableShape & AWSDecodableShape {
        /// Settings for ancillary captions source.
        public let ancillarySourceSettings: AncillarySourceSettings?
        /// DVB Sub Source Settings
        public let dvbSubSourceSettings: DvbSubSourceSettings?
        /// Settings for embedded captions Source
        public let embeddedSourceSettings: EmbeddedSourceSettings?
        /// If your input captions are SCC, SMI, SRT, STL, TTML, or IMSC 1.1 in an xml file, specify the URI of the input caption source file. If your caption source is IMSC in an IMF package, use TrackSourceSettings instead of FileSoureSettings.
        public let fileSourceSettings: FileSourceSettings?
        /// Use Source (SourceType) to identify the format of your input captions.  The service cannot auto-detect caption format.
        public let sourceType: CaptionSourceType?
        /// Settings specific to Teletext caption sources, including Page number.
        public let teletextSourceSettings: TeletextSourceSettings?
        /// Settings specific to caption sources that are specified by track number. Currently, this is only IMSC captions in an IMF package. If your caption source is IMSC 1.1 in a separate xml file, use FileSourceSettings instead of TrackSourceSettings.
        public let trackSourceSettings: TrackSourceSettings?

        public init(ancillarySourceSettings: AncillarySourceSettings? = nil, dvbSubSourceSettings: DvbSubSourceSettings? = nil, embeddedSourceSettings: EmbeddedSourceSettings? = nil, fileSourceSettings: FileSourceSettings? = nil, sourceType: CaptionSourceType? = nil, teletextSourceSettings: TeletextSourceSettings? = nil, trackSourceSettings: TrackSourceSettings? = nil) {
            self.ancillarySourceSettings = ancillarySourceSettings
            self.dvbSubSourceSettings = dvbSubSourceSettings
            self.embeddedSourceSettings = embeddedSourceSettings
            self.fileSourceSettings = fileSourceSettings
            self.sourceType = sourceType
            self.teletextSourceSettings = teletextSourceSettings
            self.trackSourceSettings = trackSourceSettings
        }

        public func validate(name: String) throws {
            try self.ancillarySourceSettings?.validate(name: "\(name).ancillarySourceSettings")
            try self.dvbSubSourceSettings?.validate(name: "\(name).dvbSubSourceSettings")
            try self.embeddedSourceSettings?.validate(name: "\(name).embeddedSourceSettings")
            try self.fileSourceSettings?.validate(name: "\(name).fileSourceSettings")
            try self.teletextSourceSettings?.validate(name: "\(name).teletextSourceSettings")
            try self.trackSourceSettings?.validate(name: "\(name).trackSourceSettings")
        }

        private enum CodingKeys: String, CodingKey {
            case ancillarySourceSettings
            case dvbSubSourceSettings
            case embeddedSourceSettings
            case fileSourceSettings
            case sourceType
            case teletextSourceSettings
            case trackSourceSettings
        }
    }

    public struct ChannelMapping: AWSEncodableShape & AWSDecodableShape {
        /// In your JSON job specification, include one child of OutputChannels for each audio channel that you want in your output. Each child should contain one instance of InputChannels or InputChannelsFineTune.
        public let outputChannels: [OutputChannelMapping]?

        public init(outputChannels: [OutputChannelMapping]? = nil) {
            self.outputChannels = outputChannels
        }

        public func validate(name: String) throws {
            try self.outputChannels?.forEach {
                try $0.validate(name: "\(name).outputChannels[]")
            }
        }

        private enum CodingKeys: String, CodingKey {
            case outputChannels
        }
    }

    public struct CmafAdditionalManifest: AWSEncodableShape & AWSDecodableShape {
        /// Specify a name modifier that the service adds to the name of this manifest to make it different from the file names of the other main manifests in the output group. For example, say that the default main manifest for your HLS group is film-name.m3u8. If you enter "-no-premium" for this setting, then the file name the service generates for this top-level manifest is film-name-no-premium.m3u8. For HLS output groups, specify a manifestNameModifier that is different from the nameModifier of the output. The service uses the output name modifier to create unique names for the individual variant manifests.
        public let manifestNameModifier: String?
        /// Specify the outputs that you want this additional top-level manifest to reference.
        public let selectedOutputs: [String]?

        public init(manifestNameModifier: String? = nil, selectedOutputs: [String]? = nil) {
            self.manifestNameModifier = manifestNameModifier
            self.selectedOutputs = selectedOutputs
        }

        public func validate(name: String) throws {
            try self.validate(self.manifestNameModifier, name: "manifestNameModifier", parent: name, min: 1)
            try self.selectedOutputs?.forEach {
                try validate($0, name: "selectedOutputs[]", parent: name, min: 1)
            }
        }

        private enum CodingKeys: String, CodingKey {
            case manifestNameModifier
            case selectedOutputs
        }
    }

    public struct CmafEncryptionSettings: AWSEncodableShape & AWSDecodableShape {
        /// This is a 128-bit, 16-byte hex value represented by a 32-character text string. If this parameter is not set then the Initialization Vector will follow the segment number by default.
        public let constantInitializationVector: String?
        /// Specify the encryption scheme that you want the service to use when encrypting your CMAF segments. Choose AES-CBC subsample (SAMPLE-AES) or AES_CTR (AES-CTR).
        public let encryptionMethod: CmafEncryptionType?
        /// When you use DRM with CMAF outputs, choose whether the service writes the 128-bit encryption initialization vector in the HLS and DASH manifests.
        public let initializationVectorInManifest: CmafInitializationVectorInManifest?
        /// If your output group type is CMAF, use these settings when doing DRM encryption with a SPEKE-compliant key provider. If your output group type is HLS, DASH, or Microsoft Smooth, use the SpekeKeyProvider settings instead.
        public let spekeKeyProvider: SpekeKeyProviderCmaf?
        /// Use these settings to set up encryption with a static key provider.
        public let staticKeyProvider: StaticKeyProvider?
        /// Specify whether your DRM encryption key is static or from a key provider that follows the SPEKE standard. For more information about SPEKE, see https://docs.aws.amazon.com/speke/latest/documentation/what-is-speke.html.
        public let type: CmafKeyProviderType?

        public init(constantInitializationVector: String? = nil, encryptionMethod: CmafEncryptionType? = nil, initializationVectorInManifest: CmafInitializationVectorInManifest? = nil, spekeKeyProvider: SpekeKeyProviderCmaf? = nil, staticKeyProvider: StaticKeyProvider? = nil, type: CmafKeyProviderType? = nil) {
            self.constantInitializationVector = constantInitializationVector
            self.encryptionMethod = encryptionMethod
            self.initializationVectorInManifest = initializationVectorInManifest
            self.spekeKeyProvider = spekeKeyProvider
            self.staticKeyProvider = staticKeyProvider
            self.type = type
        }

        public func validate(name: String) throws {
            try self.validate(self.constantInitializationVector, name: "constantInitializationVector", parent: name, max: 32)
            try self.validate(self.constantInitializationVector, name: "constantInitializationVector", parent: name, min: 32)
            try self.validate(self.constantInitializationVector, name: "constantInitializationVector", parent: name, pattern: "^[0-9a-fA-F]{32}$")
            try self.spekeKeyProvider?.validate(name: "\(name).spekeKeyProvider")
            try self.staticKeyProvider?.validate(name: "\(name).staticKeyProvider")
        }

        private enum CodingKeys: String, CodingKey {
            case constantInitializationVector
            case encryptionMethod
            case initializationVectorInManifest
            case spekeKeyProvider
            case staticKeyProvider
            case type
        }
    }

    public struct CmafGroupSettings: AWSEncodableShape & AWSDecodableShape {
        /// By default, the service creates one top-level .m3u8 HLS manifest and one top -level .mpd DASH manifest for each CMAF output group in your job. These default manifests reference every output in the output group. To create additional top-level manifests that reference a subset of the outputs in the output group, specify a list of them here. For each additional manifest that you specify, the service creates one HLS manifest and one DASH manifest.
        public let additionalManifests: [CmafAdditionalManifest]?
        /// A partial URI prefix that will be put in the manifest file at the top level BaseURL element. Can be used if streams are delivered from a different URL than the manifest file.
        public let baseUrl: String?
        /// Disable this setting only when your workflow requires the #EXT-X-ALLOW-CACHE:no tag. Otherwise, keep the default value Enabled (ENABLED) and control caching in your video distribution set up. For example, use the Cache-Control http header.
        public let clientCache: CmafClientCache?
        /// Specification to use (RFC-6381 or the default RFC-4281) during m3u8 playlist generation.
        public let codecSpecification: CmafCodecSpecification?
        /// Use Destination (Destination) to specify the S3 output location and the output filename base. Destination accepts format identifiers. If you do not specify the base filename in the URI, the service will use the filename of the input file. If your job has multiple inputs, the service uses the filename of the first input file.
        public let destination: String?
        /// Settings associated with the destination. Will vary based on the type of destination
        public let destinationSettings: DestinationSettings?
        /// DRM settings.
        public let encryption: CmafEncryptionSettings?
        /// Length of fragments to generate (in seconds). Fragment length must be compatible with GOP size and Framerate. Note that fragments will end on the next keyframe after this number of seconds, so actual fragment length may be longer. When Emit Single File is checked, the fragmentation is internal to a single output file and it does not cause the creation of many output files as in other output types.
        public let fragmentLength: Int?
        /// When set to GZIP, compresses HLS playlist.
        public let manifestCompression: CmafManifestCompression?
        /// Indicates whether the output manifest should use floating point values for segment duration.
        public let manifestDurationFormat: CmafManifestDurationFormat?
        /// Minimum time of initially buffered media that is needed to ensure smooth playout.
        public let minBufferTime: Int?
        /// Keep this setting at the default value of 0, unless you are troubleshooting a problem with how devices play back the end of your video asset. If you know that player devices are hanging on the final segment of your video because the length of your final segment is too short, use this setting to specify a minimum final segment length, in seconds. Choose a value that is greater than or equal to 1 and less than your segment length. When you specify a value for this setting, the encoder will combine any final segment that is shorter than the length that you specify with the previous segment. For example, your segment length is 3 seconds and your final segment is .5 seconds without a minimum final segment length; when you set the minimum final segment length to 1, your final segment is 3.5 seconds.
        public let minFinalSegmentLength: Double?
        /// Specify whether your DASH profile is on-demand or main. When you choose Main profile (MAIN_PROFILE), the service signals  urn:mpeg:dash:profile:isoff-main:2011 in your .mpd DASH manifest. When you choose On-demand (ON_DEMAND_PROFILE), the service signals urn:mpeg:dash:profile:isoff-on-demand:2011 in your .mpd. When you choose On-demand, you must also set the output group setting Segment control (SegmentControl) to Single file (SINGLE_FILE).
        public let mpdProfile: CmafMpdProfile?
        /// When set to SINGLE_FILE, a single output file is generated, which is internally segmented using the Fragment Length and Segment Length. When set to SEGMENTED_FILES, separate segment files will be created.
        public let segmentControl: CmafSegmentControl?
        /// Use this setting to specify the length, in seconds, of each individual CMAF segment. This value applies to the whole package; that is, to every output in the output group. Note that segments end on the first keyframe after this number of seconds, so the actual segment length might be slightly longer. If you set Segment control (CmafSegmentControl) to single file, the service puts the content of each output in a single file that has metadata that marks these segments. If you set it to segmented files, the service creates multiple files for each output, each with the content of one segment.
        public let segmentLength: Int?
        /// Include or exclude RESOLUTION attribute for video in EXT-X-STREAM-INF tag of variant manifest.
        public let streamInfResolution: CmafStreamInfResolution?
        /// When set to ENABLED, a DASH MPD manifest will be generated for this output.
        public let writeDashManifest: CmafWriteDASHManifest?
        /// When set to ENABLED, an Apple HLS manifest will be generated for this output.
        public let writeHlsManifest: CmafWriteHLSManifest?
        /// When you enable Precise segment duration in DASH manifests (writeSegmentTimelineInRepresentation), your DASH manifest shows precise segment durations. The segment duration information appears inside the SegmentTimeline element, inside SegmentTemplate at the Representation level. When this feature isn't enabled, the segment durations in your DASH manifest are approximate. The segment duration information appears in the duration attribute of the SegmentTemplate element.
        public let writeSegmentTimelineInRepresentation: CmafWriteSegmentTimelineInRepresentation?

        public init(additionalManifests: [CmafAdditionalManifest]? = nil, baseUrl: String? = nil, clientCache: CmafClientCache? = nil, codecSpecification: CmafCodecSpecification? = nil, destination: String? = nil, destinationSettings: DestinationSettings? = nil, encryption: CmafEncryptionSettings? = nil, fragmentLength: Int? = nil, manifestCompression: CmafManifestCompression? = nil, manifestDurationFormat: CmafManifestDurationFormat? = nil, minBufferTime: Int? = nil, minFinalSegmentLength: Double? = nil, mpdProfile: CmafMpdProfile? = nil, segmentControl: CmafSegmentControl? = nil, segmentLength: Int? = nil, streamInfResolution: CmafStreamInfResolution? = nil, writeDashManifest: CmafWriteDASHManifest? = nil, writeHlsManifest: CmafWriteHLSManifest? = nil, writeSegmentTimelineInRepresentation: CmafWriteSegmentTimelineInRepresentation? = nil) {
            self.additionalManifests = additionalManifests
            self.baseUrl = baseUrl
            self.clientCache = clientCache
            self.codecSpecification = codecSpecification
            self.destination = destination
            self.destinationSettings = destinationSettings
            self.encryption = encryption
            self.fragmentLength = fragmentLength
            self.manifestCompression = manifestCompression
            self.manifestDurationFormat = manifestDurationFormat
            self.minBufferTime = minBufferTime
            self.minFinalSegmentLength = minFinalSegmentLength
            self.mpdProfile = mpdProfile
            self.segmentControl = segmentControl
            self.segmentLength = segmentLength
            self.streamInfResolution = streamInfResolution
            self.writeDashManifest = writeDashManifest
            self.writeHlsManifest = writeHlsManifest
            self.writeSegmentTimelineInRepresentation = writeSegmentTimelineInRepresentation
        }

        public func validate(name: String) throws {
            try self.additionalManifests?.forEach {
                try $0.validate(name: "\(name).additionalManifests[]")
            }
            try self.validate(self.destination, name: "destination", parent: name, pattern: "^s3:\\/\\/")
            try self.destinationSettings?.validate(name: "\(name).destinationSettings")
            try self.encryption?.validate(name: "\(name).encryption")
            try self.validate(self.fragmentLength, name: "fragmentLength", parent: name, max: 2_147_483_647)
            try self.validate(self.fragmentLength, name: "fragmentLength", parent: name, min: 1)
            try self.validate(self.minBufferTime, name: "minBufferTime", parent: name, max: 2_147_483_647)
            try self.validate(self.minBufferTime, name: "minBufferTime", parent: name, min: 0)
            try self.validate(self.segmentLength, name: "segmentLength", parent: name, max: 2_147_483_647)
            try self.validate(self.segmentLength, name: "segmentLength", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case additionalManifests
            case baseUrl
            case clientCache
            case codecSpecification
            case destination
            case destinationSettings
            case encryption
            case fragmentLength
            case manifestCompression
            case manifestDurationFormat
            case minBufferTime
            case minFinalSegmentLength
            case mpdProfile
            case segmentControl
            case segmentLength
            case streamInfResolution
            case writeDashManifest
            case writeHlsManifest
            case writeSegmentTimelineInRepresentation
        }
    }

    public struct CmfcSettings: AWSEncodableShape & AWSDecodableShape {
        /// Specify this setting only when your output will be consumed by a downstream repackaging workflow that is sensitive to very small duration differences between video and audio. For this situation, choose Match video duration (MATCH_VIDEO_DURATION). In all other cases, keep the default value, Default codec duration (DEFAULT_CODEC_DURATION). When you choose Match video duration, MediaConvert pads the output audio streams with silence or trims them to ensure that the total duration of each audio stream is at least as long as the total duration of the video stream. After padding or trimming, the audio stream duration is no more than one frame longer than the video stream. MediaConvert applies audio padding or trimming only to the end of the last segment of the output. For unsegmented outputs, MediaConvert adds padding only to the end of the file. When you keep the default value, any minor discrepancies between audio and video duration will depend on your output audio codec.
        public let audioDuration: CmfcAudioDuration?
        /// Choose Include (INCLUDE) to have MediaConvert generate an HLS child manifest that lists only the I-frames for this rendition, in addition to your regular manifest for this rendition. You might use this manifest as part of a workflow that creates preview functions for your video. MediaConvert adds both the I-frame only child manifest and the regular child manifest to the parent manifest. When you don't need the I-frame only child manifest, keep the default value Exclude (EXCLUDE).
        public let iFrameOnlyManifest: CmfcIFrameOnlyManifest?
        /// Use this setting only when you specify SCTE-35 markers from ESAM. Choose INSERT to put SCTE-35 markers in this output at the insertion points that you specify in an ESAM XML document. Provide the document in the setting SCC XML (sccXml).
        public let scte35Esam: CmfcScte35Esam?
        /// Ignore this setting unless you have SCTE-35 markers in your input video file. Choose Passthrough (PASSTHROUGH) if you want SCTE-35 markers that appear in your input to also appear in this output. Choose None (NONE) if you don't want those SCTE-35 markers in this output.
        public let scte35Source: CmfcScte35Source?

        public init(audioDuration: CmfcAudioDuration? = nil, iFrameOnlyManifest: CmfcIFrameOnlyManifest? = nil, scte35Esam: CmfcScte35Esam? = nil, scte35Source: CmfcScte35Source? = nil) {
            self.audioDuration = audioDuration
            self.iFrameOnlyManifest = iFrameOnlyManifest
            self.scte35Esam = scte35Esam
            self.scte35Source = scte35Source
        }

        private enum CodingKeys: String, CodingKey {
            case audioDuration
            case iFrameOnlyManifest
            case scte35Esam
            case scte35Source
        }
    }

    public struct ColorCorrector: AWSEncodableShape & AWSDecodableShape {
        /// Brightness level.
        public let brightness: Int?
        /// Specify the color space you want for this output. The service supports conversion between HDR formats, between SDR formats, from SDR to HDR, and from HDR to SDR. SDR to HDR conversion doesn't upgrade the dynamic range. The converted video has an HDR format, but visually appears the same as an unconverted output. HDR to SDR conversion uses Elemental tone mapping technology to approximate the outcome of manually regrading from HDR to SDR.
        public let colorSpaceConversion: ColorSpaceConversion?
        /// Contrast level.
        public let contrast: Int?
        /// Use these settings when you convert to the HDR 10 color space. Specify the SMPTE ST 2086 Mastering Display Color Volume static metadata that you want signaled in the output. These values don't affect the pixel values that are encoded in the video stream. They are intended to help the downstream video player display content in a way that reflects the intentions of the the content creator. When you set Color space conversion (ColorSpaceConversion) to HDR 10 (FORCE_HDR10), these settings are required. You must set values for Max frame average light level (maxFrameAverageLightLevel) and Max content light level (maxContentLightLevel); these settings don't have a default value. The default values for the other HDR 10 metadata settings are defined by the P3D65 color space. For more information about MediaConvert HDR jobs, see https://docs.aws.amazon.com/console/mediaconvert/hdr.
        public let hdr10Metadata: Hdr10Metadata?
        /// Hue in degrees.
        public let hue: Int?
        /// Saturation level.
        public let saturation: Int?

        public init(brightness: Int? = nil, colorSpaceConversion: ColorSpaceConversion? = nil, contrast: Int? = nil, hdr10Metadata: Hdr10Metadata? = nil, hue: Int? = nil, saturation: Int? = nil) {
            self.brightness = brightness
            self.colorSpaceConversion = colorSpaceConversion
            self.contrast = contrast
            self.hdr10Metadata = hdr10Metadata
            self.hue = hue
            self.saturation = saturation
        }

        public func validate(name: String) throws {
            try self.validate(self.brightness, name: "brightness", parent: name, max: 100)
            try self.validate(self.brightness, name: "brightness", parent: name, min: 1)
            try self.validate(self.contrast, name: "contrast", parent: name, max: 100)
            try self.validate(self.contrast, name: "contrast", parent: name, min: 1)
            try self.hdr10Metadata?.validate(name: "\(name).hdr10Metadata")
            try self.validate(self.hue, name: "hue", parent: name, max: 180)
            try self.validate(self.hue, name: "hue", parent: name, min: -180)
            try self.validate(self.saturation, name: "saturation", parent: name, max: 100)
            try self.validate(self.saturation, name: "saturation", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case brightness
            case colorSpaceConversion
            case contrast
            case hdr10Metadata
            case hue
            case saturation
        }
    }

    public struct ContainerSettings: AWSEncodableShape & AWSDecodableShape {
        /// Settings for MP4 segments in CMAF
        public let cmfcSettings: CmfcSettings?
        /// Container for this output. Some containers require a container settings object. If not specified, the default object will be created.
        public let container: ContainerType?
        /// Settings for F4v container
        public let f4vSettings: F4vSettings?
        /// MPEG-2 TS container settings. These apply to outputs in a File output group when the output's container (ContainerType) is MPEG-2 Transport Stream (M2TS). In these assets, data is organized by the program map table (PMT). Each transport stream program contains subsets of data, including audio, video, and metadata. Each of these subsets of data has a numerical label called a packet identifier (PID). Each transport stream program corresponds to one MediaConvert output. The PMT lists the types of data in a program along with their PID. Downstream systems and players use the program map table to look up the PID for each type of data it accesses and then uses the PIDs to locate specific data within the asset.
        public let m2tsSettings: M2tsSettings?
        /// Settings for TS segments in HLS
        public let m3u8Settings: M3u8Settings?
        /// Settings for MOV Container.
        public let movSettings: MovSettings?
        /// Settings for MP4 container. You can create audio-only AAC outputs with this container.
        public let mp4Settings: Mp4Settings?
        /// Settings for MP4 segments in DASH
        public let mpdSettings: MpdSettings?
        /// MXF settings
        public let mxfSettings: MxfSettings?

        public init(cmfcSettings: CmfcSettings? = nil, container: ContainerType? = nil, f4vSettings: F4vSettings? = nil, m2tsSettings: M2tsSettings? = nil, m3u8Settings: M3u8Settings? = nil, movSettings: MovSettings? = nil, mp4Settings: Mp4Settings? = nil, mpdSettings: MpdSettings? = nil, mxfSettings: MxfSettings? = nil) {
            self.cmfcSettings = cmfcSettings
            self.container = container
            self.f4vSettings = f4vSettings
            self.m2tsSettings = m2tsSettings
            self.m3u8Settings = m3u8Settings
            self.movSettings = movSettings
            self.mp4Settings = mp4Settings
            self.mpdSettings = mpdSettings
            self.mxfSettings = mxfSettings
        }

        public func validate(name: String) throws {
            try self.m2tsSettings?.validate(name: "\(name).m2tsSettings")
            try self.m3u8Settings?.validate(name: "\(name).m3u8Settings")
            try self.mp4Settings?.validate(name: "\(name).mp4Settings")
        }

        private enum CodingKeys: String, CodingKey {
            case cmfcSettings
            case container
            case f4vSettings
            case m2tsSettings
            case m3u8Settings
            case movSettings
            case mp4Settings
            case mpdSettings
            case mxfSettings
        }
    }

    public struct CreateJobRequest: AWSEncodableShape {
        /// Optional. Accelerated transcoding can significantly speed up jobs with long, visually complex content. Outputs that use this feature incur pro-tier pricing. For information about feature limitations, see the AWS Elemental MediaConvert User Guide.
        public let accelerationSettings: AccelerationSettings?
        /// Optional. Choose a tag type that AWS Billing and Cost Management will use to sort your AWS Elemental MediaConvert costs on any billing report that you set up. Any transcoding outputs that don't have an associated tag will appear in your billing report unsorted. If you don't choose a valid value for this field, your job outputs will appear on the billing report unsorted.
        public let billingTagsSource: BillingTagsSource?
        /// Optional. Idempotency token for CreateJob operation.
        public let clientRequestToken: String?
        /// Optional. Use queue hopping to avoid overly long waits in the backlog of the queue that you submit your job to. Specify an alternate queue and the maximum time that your job will wait in the initial queue before hopping. For more information about this feature, see the AWS Elemental MediaConvert User Guide.
        public let hopDestinations: [HopDestination]?
        /// Optional. When you create a job, you can either specify a job template or specify the transcoding settings individually.
        public let jobTemplate: String?
        /// Optional. Specify the relative priority for this job. In any given queue, the service begins processing the job with the highest value first. When more than one job has the same priority, the service begins processing the job that you submitted first. If you don't specify a priority, the service uses the default value 0.
        public let priority: Int?
        /// Optional. When you create a job, you can specify a queue to send it to. If you don't specify, the job will go to the default queue. For more about queues, see the User Guide topic at https://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html.
        public let queue: String?
        /// Required. The IAM role you use for creating this job. For details about permissions, see the User Guide topic at the User Guide at https://docs.aws.amazon.com/mediaconvert/latest/ug/iam-role.html.
        public let role: String
        /// JobSettings contains all the transcode settings for a job.
        public let settings: JobSettings
        /// Optional. Enable this setting when you run a test job to estimate how many reserved transcoding slots (RTS) you need. When this is enabled, MediaConvert runs your job from an on-demand queue with similar performance to what you will see with one RTS in a reserved queue. This setting is disabled by default.
        public let simulateReservedQueue: SimulateReservedQueue?
        /// Optional. Specify how often MediaConvert sends STATUS_UPDATE events to Amazon CloudWatch Events. Set the interval, in seconds, between status updates. MediaConvert sends an update at this interval from the time the service begins processing your job to the time it completes the transcode or encounters an error.
        public let statusUpdateInterval: StatusUpdateInterval?
        /// Optional. The tags that you want to add to the resource. You can tag resources with a key-value pair or with only a key.  Use standard AWS tags on your job for automatic integration with AWS services and for custom integrations and workflows.
        public let tags: [String: String]?
        /// Optional. User-defined metadata that you want to associate with an MediaConvert job. You specify metadata in key/value pairs.  Use only for existing integrations or workflows that rely on job metadata tags. Otherwise, we recommend that you use standard AWS tags.
        public let userMetadata: [String: String]?

        public init(accelerationSettings: AccelerationSettings? = nil, billingTagsSource: BillingTagsSource? = nil, clientRequestToken: String? = CreateJobRequest.idempotencyToken(), hopDestinations: [HopDestination]? = nil, jobTemplate: String? = nil, priority: Int? = nil, queue: String? = nil, role: String, settings: JobSettings, simulateReservedQueue: SimulateReservedQueue? = nil, statusUpdateInterval: StatusUpdateInterval? = nil, tags: [String: String]? = nil, userMetadata: [String: String]? = nil) {
            self.accelerationSettings = accelerationSettings
            self.billingTagsSource = billingTagsSource
            self.clientRequestToken = clientRequestToken
            self.hopDestinations = hopDestinations
            self.jobTemplate = jobTemplate
            self.priority = priority
            self.queue = queue
            self.role = role
            self.settings = settings
            self.simulateReservedQueue = simulateReservedQueue
            self.statusUpdateInterval = statusUpdateInterval
            self.tags = tags
            self.userMetadata = userMetadata
        }

        public func validate(name: String) throws {
            try self.hopDestinations?.forEach {
                try $0.validate(name: "\(name).hopDestinations[]")
            }
            try self.validate(self.priority, name: "priority", parent: name, max: 50)
            try self.validate(self.priority, name: "priority", parent: name, min: -50)
            try self.settings.validate(name: "\(name).settings")
        }

        private enum CodingKeys: String, CodingKey {
            case accelerationSettings
            case billingTagsSource
            case clientRequestToken
            case hopDestinations
            case jobTemplate
            case priority
            case queue
            case role
            case settings
            case simulateReservedQueue
            case statusUpdateInterval
            case tags
            case userMetadata
        }
    }

    public struct CreateJobResponse: AWSDecodableShape {
        /// Each job converts an input file into an output file or files. For more information, see the User Guide at https://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html
        public let job: Job?

        public init(job: Job? = nil) {
            self.job = job
        }

        private enum CodingKeys: String, CodingKey {
            case job
        }
    }

    public struct CreateJobTemplateRequest: AWSEncodableShape {
        /// Accelerated transcoding can significantly speed up jobs with long, visually complex content. Outputs that use this feature incur pro-tier pricing. For information about feature limitations, see the AWS Elemental MediaConvert User Guide.
        public let accelerationSettings: AccelerationSettings?
        /// Optional. A category for the job template you are creating
        public let category: String?
        /// Optional. A description of the job template you are creating.
        public let description: String?
        /// Optional. Use queue hopping to avoid overly long waits in the backlog of the queue that you submit your job to. Specify an alternate queue and the maximum time that your job will wait in the initial queue before hopping. For more information about this feature, see the AWS Elemental MediaConvert User Guide.
        public let hopDestinations: [HopDestination]?
        /// The name of the job template you are creating.
        public let name: String
        /// Specify the relative priority for this job. In any given queue, the service begins processing the job with the highest value first. When more than one job has the same priority, the service begins processing the job that you submitted first. If you don't specify a priority, the service uses the default value 0.
        public let priority: Int?
        /// Optional. The queue that jobs created from this template are assigned to. If you don't specify this, jobs will go to the default queue.
        public let queue: String?
        /// JobTemplateSettings contains all the transcode settings saved in the template that will be applied to jobs created from it.
        public let settings: JobTemplateSettings
        /// Specify how often MediaConvert sends STATUS_UPDATE events to Amazon CloudWatch Events. Set the interval, in seconds, between status updates. MediaConvert sends an update at this interval from the time the service begins processing your job to the time it completes the transcode or encounters an error.
        public let statusUpdateInterval: StatusUpdateInterval?
        /// The tags that you want to add to the resource. You can tag resources with a key-value pair or with only a key.
        public let tags: [String: String]?

        public init(accelerationSettings: AccelerationSettings? = nil, category: String? = nil, description: String? = nil, hopDestinations: [HopDestination]? = nil, name: String, priority: Int? = nil, queue: String? = nil, settings: JobTemplateSettings, statusUpdateInterval: StatusUpdateInterval? = nil, tags: [String: String]? = nil) {
            self.accelerationSettings = accelerationSettings
            self.category = category
            self.description = description
            self.hopDestinations = hopDestinations
            self.name = name
            self.priority = priority
            self.queue = queue
            self.settings = settings
            self.statusUpdateInterval = statusUpdateInterval
            self.tags = tags
        }

        public func validate(name: String) throws {
            try self.hopDestinations?.forEach {
                try $0.validate(name: "\(name).hopDestinations[]")
            }
            try self.validate(self.priority, name: "priority", parent: name, max: 50)
            try self.validate(self.priority, name: "priority", parent: name, min: -50)
            try self.settings.validate(name: "\(name).settings")
        }

        private enum CodingKeys: String, CodingKey {
            case accelerationSettings
            case category
            case description
            case hopDestinations
            case name
            case priority
            case queue
            case settings
            case statusUpdateInterval
            case tags
        }
    }

    public struct CreateJobTemplateResponse: AWSDecodableShape {
        /// A job template is a pre-made set of encoding instructions that you can use to quickly create a job.
        public let jobTemplate: JobTemplate?

        public init(jobTemplate: JobTemplate? = nil) {
            self.jobTemplate = jobTemplate
        }

        private enum CodingKeys: String, CodingKey {
            case jobTemplate
        }
    }

    public struct CreatePresetRequest: AWSEncodableShape {
        /// Optional. A category for the preset you are creating.
        public let category: String?
        /// Optional. A description of the preset you are creating.
        public let description: String?
        /// The name of the preset you are creating.
        public let name: String
        /// Settings for preset
        public let settings: PresetSettings
        /// The tags that you want to add to the resource. You can tag resources with a key-value pair or with only a key.
        public let tags: [String: String]?

        public init(category: String? = nil, description: String? = nil, name: String, settings: PresetSettings, tags: [String: String]? = nil) {
            self.category = category
            self.description = description
            self.name = name
            self.settings = settings
            self.tags = tags
        }

        public func validate(name: String) throws {
            try self.settings.validate(name: "\(name).settings")
        }

        private enum CodingKeys: String, CodingKey {
            case category
            case description
            case name
            case settings
            case tags
        }
    }

    public struct CreatePresetResponse: AWSDecodableShape {
        /// A preset is a collection of preconfigured media conversion settings that you want MediaConvert to apply to the output during the conversion process.
        public let preset: Preset?

        public init(preset: Preset? = nil) {
            self.preset = preset
        }

        private enum CodingKeys: String, CodingKey {
            case preset
        }
    }

    public struct CreateQueueRequest: AWSEncodableShape {
        /// Optional. A description of the queue that you are creating.
        public let description: String?
        /// The name of the queue that you are creating.
        public let name: String
        /// Specifies whether the pricing plan for the queue is on-demand or reserved. For on-demand, you pay per minute, billed in increments of .01 minute. For reserved, you pay for the transcoding capacity of the entire queue, regardless of how much or how little you use it. Reserved pricing requires a 12-month commitment. When you use the API to create a queue, the default is on-demand.
        public let pricingPlan: PricingPlan?
        /// Details about the pricing plan for your reserved queue. Required for reserved queues and not applicable to on-demand queues.
        public let reservationPlanSettings: ReservationPlanSettings?
        /// Initial state of the queue. If you create a paused queue, then jobs in that queue won't begin.
        public let status: QueueStatus?
        /// The tags that you want to add to the resource. You can tag resources with a key-value pair or with only a key.
        public let tags: [String: String]?

        public init(description: String? = nil, name: String, pricingPlan: PricingPlan? = nil, reservationPlanSettings: ReservationPlanSettings? = nil, status: QueueStatus? = nil, tags: [String: String]? = nil) {
            self.description = description
            self.name = name
            self.pricingPlan = pricingPlan
            self.reservationPlanSettings = reservationPlanSettings
            self.status = status
            self.tags = tags
        }

        private enum CodingKeys: String, CodingKey {
            case description
            case name
            case pricingPlan
            case reservationPlanSettings
            case status
            case tags
        }
    }

    public struct CreateQueueResponse: AWSDecodableShape {
        /// You can use queues to manage the resources that are available to your AWS account for running multiple transcoding jobs at the same time. If you don't specify a queue, the service sends all jobs through the default queue. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/working-with-queues.html.
        public let queue: Queue?

        public init(queue: Queue? = nil) {
            self.queue = queue
        }

        private enum CodingKeys: String, CodingKey {
            case queue
        }
    }

    public struct DashAdditionalManifest: AWSEncodableShape & AWSDecodableShape {
        /// Specify a name modifier that the service adds to the name of this manifest to make it different from the file names of the other main manifests in the output group. For example, say that the default main manifest for your DASH group is film-name.mpd. If you enter "-no-premium" for this setting, then the file name the service generates for this top-level manifest is film-name-no-premium.mpd.
        public let manifestNameModifier: String?
        /// Specify the outputs that you want this additional top-level manifest to reference.
        public let selectedOutputs: [String]?

        public init(manifestNameModifier: String? = nil, selectedOutputs: [String]? = nil) {
            self.manifestNameModifier = manifestNameModifier
            self.selectedOutputs = selectedOutputs
        }

        public func validate(name: String) throws {
            try self.validate(self.manifestNameModifier, name: "manifestNameModifier", parent: name, min: 1)
            try self.selectedOutputs?.forEach {
                try validate($0, name: "selectedOutputs[]", parent: name, min: 1)
            }
        }

        private enum CodingKeys: String, CodingKey {
            case manifestNameModifier
            case selectedOutputs
        }
    }

    public struct DashIsoEncryptionSettings: AWSEncodableShape & AWSDecodableShape {
        /// This setting can improve the compatibility of your output with video players on obsolete devices. It applies only to DASH H.264 outputs with DRM encryption. Choose Unencrypted SEI (UNENCRYPTED_SEI) only to correct problems with playback on older devices. Otherwise, keep the default setting CENC v1 (CENC_V1). If you choose Unencrypted SEI, for that output, the service will exclude the access unit delimiter and will leave the SEI NAL units unencrypted.
        public let playbackDeviceCompatibility: DashIsoPlaybackDeviceCompatibility?
        /// If your output group type is HLS, DASH, or Microsoft Smooth, use these settings when doing DRM encryption with a SPEKE-compliant key provider.  If your output group type is CMAF, use the SpekeKeyProviderCmaf settings instead.
        public let spekeKeyProvider: SpekeKeyProvider?

        public init(playbackDeviceCompatibility: DashIsoPlaybackDeviceCompatibility? = nil, spekeKeyProvider: SpekeKeyProvider? = nil) {
            self.playbackDeviceCompatibility = playbackDeviceCompatibility
            self.spekeKeyProvider = spekeKeyProvider
        }

        public func validate(name: String) throws {
            try self.spekeKeyProvider?.validate(name: "\(name).spekeKeyProvider")
        }

        private enum CodingKeys: String, CodingKey {
            case playbackDeviceCompatibility
            case spekeKeyProvider
        }
    }

    public struct DashIsoGroupSettings: AWSEncodableShape & AWSDecodableShape {
        /// By default, the service creates one .mpd DASH manifest for each DASH ISO output group in your job. This default manifest references every output in the output group. To create additional DASH manifests that reference a subset of the outputs in the output group, specify a list of them here.
        public let additionalManifests: [DashAdditionalManifest]?
        /// A partial URI prefix that will be put in the manifest (.mpd) file at the top level BaseURL element. Can be used if streams are delivered from a different URL than the manifest file.
        public let baseUrl: String?
        /// Use Destination (Destination) to specify the S3 output location and the output filename base. Destination accepts format identifiers. If you do not specify the base filename in the URI, the service will use the filename of the input file. If your job has multiple inputs, the service uses the filename of the first input file.
        public let destination: String?
        /// Settings associated with the destination. Will vary based on the type of destination
        public let destinationSettings: DestinationSettings?
        /// DRM settings.
        public let encryption: DashIsoEncryptionSettings?
        /// Length of fragments to generate (in seconds). Fragment length must be compatible with GOP size and Framerate. Note that fragments will end on the next keyframe after this number of seconds, so actual fragment length may be longer. When Emit Single File is checked, the fragmentation is internal to a single output file and it does not cause the creation of many output files as in other output types.
        public let fragmentLength: Int?
        /// Supports HbbTV specification as indicated
        public let hbbtvCompliance: DashIsoHbbtvCompliance?
        /// Minimum time of initially buffered media that is needed to ensure smooth playout.
        public let minBufferTime: Int?
        /// Keep this setting at the default value of 0, unless you are troubleshooting a problem with how devices play back the end of your video asset. If you know that player devices are hanging on the final segment of your video because the length of your final segment is too short, use this setting to specify a minimum final segment length, in seconds. Choose a value that is greater than or equal to 1 and less than your segment length. When you specify a value for this setting, the encoder will combine any final segment that is shorter than the length that you specify with the previous segment. For example, your segment length is 3 seconds and your final segment is .5 seconds without a minimum final segment length; when you set the minimum final segment length to 1, your final segment is 3.5 seconds.
        public let minFinalSegmentLength: Double?
        /// Specify whether your DASH profile is on-demand or main. When you choose Main profile (MAIN_PROFILE), the service signals  urn:mpeg:dash:profile:isoff-main:2011 in your .mpd DASH manifest. When you choose On-demand (ON_DEMAND_PROFILE), the service signals urn:mpeg:dash:profile:isoff-on-demand:2011 in your .mpd. When you choose On-demand, you must also set the output group setting Segment control (SegmentControl) to Single file (SINGLE_FILE).
        public let mpdProfile: DashIsoMpdProfile?
        /// When set to SINGLE_FILE, a single output file is generated, which is internally segmented using the Fragment Length and Segment Length. When set to SEGMENTED_FILES, separate segment files will be created.
        public let segmentControl: DashIsoSegmentControl?
        /// Length of mpd segments to create (in seconds). Note that segments will end on the next keyframe after this number of seconds, so actual segment length may be longer. When Emit Single File is checked, the segmentation is internal to a single output file and it does not cause the creation of many output files as in other output types.
        public let segmentLength: Int?
        /// If you get an HTTP error in the 400 range when you play back your DASH output, enable this setting and run your transcoding job again. When you enable this setting, the service writes precise segment durations in the DASH manifest. The segment duration information appears inside the SegmentTimeline element, inside SegmentTemplate at the Representation level. When you don't enable this setting, the service writes approximate segment durations in your DASH manifest.
        public let writeSegmentTimelineInRepresentation: DashIsoWriteSegmentTimelineInRepresentation?

        public init(additionalManifests: [DashAdditionalManifest]? = nil, baseUrl: String? = nil, destination: String? = nil, destinationSettings: DestinationSettings? = nil, encryption: DashIsoEncryptionSettings? = nil, fragmentLength: Int? = nil, hbbtvCompliance: DashIsoHbbtvCompliance? = nil, minBufferTime: Int? = nil, minFinalSegmentLength: Double? = nil, mpdProfile: DashIsoMpdProfile? = nil, segmentControl: DashIsoSegmentControl? = nil, segmentLength: Int? = nil, writeSegmentTimelineInRepresentation: DashIsoWriteSegmentTimelineInRepresentation? = nil) {
            self.additionalManifests = additionalManifests
            self.baseUrl = baseUrl
            self.destination = destination
            self.destinationSettings = destinationSettings
            self.encryption = encryption
            self.fragmentLength = fragmentLength
            self.hbbtvCompliance = hbbtvCompliance
            self.minBufferTime = minBufferTime
            self.minFinalSegmentLength = minFinalSegmentLength
            self.mpdProfile = mpdProfile
            self.segmentControl = segmentControl
            self.segmentLength = segmentLength
            self.writeSegmentTimelineInRepresentation = writeSegmentTimelineInRepresentation
        }

        public func validate(name: String) throws {
            try self.additionalManifests?.forEach {
                try $0.validate(name: "\(name).additionalManifests[]")
            }
            try self.validate(self.destination, name: "destination", parent: name, pattern: "^s3:\\/\\/")
            try self.destinationSettings?.validate(name: "\(name).destinationSettings")
            try self.encryption?.validate(name: "\(name).encryption")
            try self.validate(self.fragmentLength, name: "fragmentLength", parent: name, max: 2_147_483_647)
            try self.validate(self.fragmentLength, name: "fragmentLength", parent: name, min: 1)
            try self.validate(self.minBufferTime, name: "minBufferTime", parent: name, max: 2_147_483_647)
            try self.validate(self.minBufferTime, name: "minBufferTime", parent: name, min: 0)
            try self.validate(self.segmentLength, name: "segmentLength", parent: name, max: 2_147_483_647)
            try self.validate(self.segmentLength, name: "segmentLength", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case additionalManifests
            case baseUrl
            case destination
            case destinationSettings
            case encryption
            case fragmentLength
            case hbbtvCompliance
            case minBufferTime
            case minFinalSegmentLength
            case mpdProfile
            case segmentControl
            case segmentLength
            case writeSegmentTimelineInRepresentation
        }
    }

    public struct Deinterlacer: AWSEncodableShape & AWSDecodableShape {
        /// Only applies when you set Deinterlacer (DeinterlaceMode) to Deinterlace (DEINTERLACE) or Adaptive (ADAPTIVE). Motion adaptive interpolate (INTERPOLATE) produces sharper pictures, while blend (BLEND) produces smoother motion. Use (INTERPOLATE_TICKER) OR (BLEND_TICKER) if your source file includes a ticker, such as a scrolling headline at the bottom of the frame.
        public let algorithm: DeinterlaceAlgorithm?
        /// - When set to NORMAL (default), the deinterlacer does not convert frames that are tagged  in metadata as progressive. It will only convert those that are tagged as some other type. - When set to FORCE_ALL_FRAMES, the deinterlacer converts every frame to progressive - even those that are already tagged as progressive. Turn Force mode on only if there is  a good chance that the metadata has tagged frames as progressive when they are not  progressive. Do not turn on otherwise; processing frames that are already progressive  into progressive will probably result in lower quality video.
        public let control: DeinterlacerControl?
        /// Use Deinterlacer (DeinterlaceMode) to choose how the service will do deinterlacing. Default is Deinterlace. - Deinterlace converts interlaced to progressive. - Inverse telecine converts Hard Telecine 29.97i to progressive 23.976p. - Adaptive auto-detects and converts to progressive.
        public let mode: DeinterlacerMode?

        public init(algorithm: DeinterlaceAlgorithm? = nil, control: DeinterlacerControl? = nil, mode: DeinterlacerMode? = nil) {
            self.algorithm = algorithm
            self.control = control
            self.mode = mode
        }

        private enum CodingKeys: String, CodingKey {
            case algorithm
            case control
            case mode
        }
    }

    public struct DeleteJobTemplateRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "name", location: .uri(locationName: "name"))
        ]

        /// The name of the job template to be deleted.
        public let name: String

        public init(name: String) {
            self.name = name
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct DeleteJobTemplateResponse: AWSDecodableShape {
        public init() {}
    }

    public struct DeletePresetRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "name", location: .uri(locationName: "name"))
        ]

        /// The name of the preset to be deleted.
        public let name: String

        public init(name: String) {
            self.name = name
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct DeletePresetResponse: AWSDecodableShape {
        public init() {}
    }

    public struct DeleteQueueRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "name", location: .uri(locationName: "name"))
        ]

        /// The name of the queue that you want to delete.
        public let name: String

        public init(name: String) {
            self.name = name
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct DeleteQueueResponse: AWSDecodableShape {
        public init() {}
    }

    public struct DescribeEndpointsRequest: AWSEncodableShape {
        /// Optional. Max number of endpoints, up to twenty, that will be returned at one time.
        public let maxResults: Int?
        /// Optional field, defaults to DEFAULT. Specify DEFAULT for this operation to return your endpoints if any exist, or to create an endpoint for you and return it if one doesn't already exist. Specify GET_ONLY to return your endpoints if any exist, or an empty list if none exist.
        public let mode: DescribeEndpointsMode?
        /// Use this string, provided with the response to a previous request, to request the next batch of endpoints.
        public let nextToken: String?

        public init(maxResults: Int? = nil, mode: DescribeEndpointsMode? = nil, nextToken: String? = nil) {
            self.maxResults = maxResults
            self.mode = mode
            self.nextToken = nextToken
        }

        private enum CodingKeys: String, CodingKey {
            case maxResults
            case mode
            case nextToken
        }
    }

    public struct DescribeEndpointsResponse: AWSDecodableShape {
        /// List of endpoints
        public let endpoints: [Endpoint]?
        /// Use this string to request the next batch of endpoints.
        public let nextToken: String?

        public init(endpoints: [Endpoint]? = nil, nextToken: String? = nil) {
            self.endpoints = endpoints
            self.nextToken = nextToken
        }

        private enum CodingKeys: String, CodingKey {
            case endpoints
            case nextToken
        }
    }

    public struct DestinationSettings: AWSEncodableShape & AWSDecodableShape {
        /// Settings associated with S3 destination
        public let s3Settings: S3DestinationSettings?

        public init(s3Settings: S3DestinationSettings? = nil) {
            self.s3Settings = s3Settings
        }

        public func validate(name: String) throws {
            try self.s3Settings?.validate(name: "\(name).s3Settings")
        }

        private enum CodingKeys: String, CodingKey {
            case s3Settings
        }
    }

    public struct DisassociateCertificateRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "arn", location: .uri(locationName: "arn"))
        ]

        /// The ARN of the ACM certificate that you want to disassociate from your MediaConvert resource.
        public let arn: String

        public init(arn: String) {
            self.arn = arn
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct DisassociateCertificateResponse: AWSDecodableShape {
        public init() {}
    }

    public struct DolbyVision: AWSEncodableShape & AWSDecodableShape {
        /// Use these settings when you set DolbyVisionLevel6Mode to SPECIFY to override the MaxCLL and MaxFALL values in your input with new values.
        public let l6Metadata: DolbyVisionLevel6Metadata?
        /// Use Dolby Vision Mode to choose how the service will handle Dolby Vision MaxCLL and MaxFALL properies.
        public let l6Mode: DolbyVisionLevel6Mode?
        /// In the current MediaConvert implementation, the Dolby Vision profile is always 5 (PROFILE_5). Therefore, all of your inputs must contain Dolby Vision frame interleaved data.
        public let profile: DolbyVisionProfile?

        public init(l6Metadata: DolbyVisionLevel6Metadata? = nil, l6Mode: DolbyVisionLevel6Mode? = nil, profile: DolbyVisionProfile? = nil) {
            self.l6Metadata = l6Metadata
            self.l6Mode = l6Mode
            self.profile = profile
        }

        public func validate(name: String) throws {
            try self.l6Metadata?.validate(name: "\(name).l6Metadata")
        }

        private enum CodingKeys: String, CodingKey {
            case l6Metadata
            case l6Mode
            case profile
        }
    }

    public struct DolbyVisionLevel6Metadata: AWSEncodableShape & AWSDecodableShape {
        /// Maximum Content Light Level. Static HDR metadata that corresponds to the brightest pixel in the entire stream. Measured in nits.
        public let maxCll: Int?
        /// Maximum Frame-Average Light Level. Static HDR metadata that corresponds to the highest frame-average brightness in the entire stream. Measured in nits.
        public let maxFall: Int?

        public init(maxCll: Int? = nil, maxFall: Int? = nil) {
            self.maxCll = maxCll
            self.maxFall = maxFall
        }

        public func validate(name: String) throws {
            try self.validate(self.maxCll, name: "maxCll", parent: name, max: 65535)
            try self.validate(self.maxCll, name: "maxCll", parent: name, min: 0)
            try self.validate(self.maxFall, name: "maxFall", parent: name, max: 65535)
            try self.validate(self.maxFall, name: "maxFall", parent: name, min: 0)
        }

        private enum CodingKeys: String, CodingKey {
            case maxCll
            case maxFall
        }
    }

    public struct DvbNitSettings: AWSEncodableShape & AWSDecodableShape {
        /// The numeric value placed in the Network Information Table (NIT).
        public let networkId: Int?
        /// The network name text placed in the network_name_descriptor inside the Network Information Table. Maximum length is 256 characters.
        public let networkName: String?
        /// The number of milliseconds between instances of this table in the output transport stream.
        public let nitInterval: Int?

        public init(networkId: Int? = nil, networkName: String? = nil, nitInterval: Int? = nil) {
            self.networkId = networkId
            self.networkName = networkName
            self.nitInterval = nitInterval
        }

        public func validate(name: String) throws {
            try self.validate(self.networkId, name: "networkId", parent: name, max: 65535)
            try self.validate(self.networkId, name: "networkId", parent: name, min: 0)
            try self.validate(self.networkName, name: "networkName", parent: name, max: 256)
            try self.validate(self.networkName, name: "networkName", parent: name, min: 1)
            try self.validate(self.nitInterval, name: "nitInterval", parent: name, max: 10000)
            try self.validate(self.nitInterval, name: "nitInterval", parent: name, min: 25)
        }

        private enum CodingKeys: String, CodingKey {
            case networkId
            case networkName
            case nitInterval
        }
    }

    public struct DvbSdtSettings: AWSEncodableShape & AWSDecodableShape {
        /// Selects method of inserting SDT information into output stream.  "Follow input SDT" copies SDT information from input stream to  output stream. "Follow input SDT if present" copies SDT information from  input stream to output stream if SDT information is present in the input, otherwise it will fall back on the user-defined values. Enter "SDT  Manually" means user will enter the SDT information. "No SDT" means output  stream will not contain SDT information.
        public let outputSdt: OutputSdt?
        /// The number of milliseconds between instances of this table in the output transport stream.
        public let sdtInterval: Int?
        /// The service name placed in the service_descriptor in the Service Description Table. Maximum length is 256 characters.
        public let serviceName: String?
        /// The service provider name placed in the service_descriptor in the Service Description Table. Maximum length is 256 characters.
        public let serviceProviderName: String?

        public init(outputSdt: OutputSdt? = nil, sdtInterval: Int? = nil, serviceName: String? = nil, serviceProviderName: String? = nil) {
            self.outputSdt = outputSdt
            self.sdtInterval = sdtInterval
            self.serviceName = serviceName
            self.serviceProviderName = serviceProviderName
        }

        public func validate(name: String) throws {
            try self.validate(self.sdtInterval, name: "sdtInterval", parent: name, max: 2000)
            try self.validate(self.sdtInterval, name: "sdtInterval", parent: name, min: 25)
            try self.validate(self.serviceName, name: "serviceName", parent: name, max: 256)
            try self.validate(self.serviceName, name: "serviceName", parent: name, min: 1)
            try self.validate(self.serviceProviderName, name: "serviceProviderName", parent: name, max: 256)
            try self.validate(self.serviceProviderName, name: "serviceProviderName", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case outputSdt
            case sdtInterval
            case serviceName
            case serviceProviderName
        }
    }

    public struct DvbSubDestinationSettings: AWSEncodableShape & AWSDecodableShape {
        /// If no explicit x_position or y_position is provided, setting alignment to centered will place the captions at the bottom center of the output. Similarly, setting a left alignment will align captions to the bottom left of the output. If x and y positions are given in conjunction with the alignment parameter, the font will be justified (either left or centered) relative to those coordinates. This option is not valid for source captions that are STL, 608/embedded or teletext. These source settings are already pre-defined by the caption stream. All burn-in and DVB-Sub font settings must match.
        public let alignment: DvbSubtitleAlignment?
        /// Specifies the color of the rectangle behind the captions.
        /// All burn-in and DVB-Sub font settings must match.
        public let backgroundColor: DvbSubtitleBackgroundColor?
        /// Specifies the opacity of the background rectangle. 255 is opaque; 0 is transparent. Leaving this parameter blank is equivalent to setting it to 0 (transparent). All burn-in and DVB-Sub font settings must match.
        public let backgroundOpacity: Int?
        /// Specifies the color of the burned-in captions. This option is not valid for source captions that are STL, 608/embedded or teletext. These source settings are already pre-defined by the caption stream. All burn-in and DVB-Sub font settings must match.
        public let fontColor: DvbSubtitleFontColor?
        /// Specifies the opacity of the burned-in captions. 255 is opaque; 0 is transparent.
        /// All burn-in and DVB-Sub font settings must match.
        public let fontOpacity: Int?
        /// Font resolution in DPI (dots per inch); default is 96 dpi.
        /// All burn-in and DVB-Sub font settings must match.
        public let fontResolution: Int?
        /// Provide the font script, using an ISO 15924 script code, if the LanguageCode is not sufficient for determining the script type. Where LanguageCode or CustomLanguageCode is sufficient, use "AUTOMATIC" or leave unset. This is used to help determine the appropriate font for rendering DVB-Sub captions.
        public let fontScript: FontScript?
        /// A positive integer indicates the exact font size in points. Set to 0 for automatic font size selection. All burn-in and DVB-Sub font settings must match.
        public let fontSize: Int?
        /// Specifies font outline color. This option is not valid for source captions that are either 608/embedded or teletext. These source settings are already pre-defined by the caption stream. All burn-in and DVB-Sub font settings must match.
        public let outlineColor: DvbSubtitleOutlineColor?
        /// Specifies font outline size in pixels. This option is not valid for source captions that are either 608/embedded or teletext. These source settings are already pre-defined by the caption stream. All burn-in and DVB-Sub font settings must match.
        public let outlineSize: Int?
        /// Specifies the color of the shadow cast by the captions.
        /// All burn-in and DVB-Sub font settings must match.
        public let shadowColor: DvbSubtitleShadowColor?
        /// Specifies the opacity of the shadow. 255 is opaque; 0 is transparent. Leaving this parameter blank is equivalent to setting it to 0 (transparent). All burn-in and DVB-Sub font settings must match.
        public let shadowOpacity: Int?
        /// Specifies the horizontal offset of the shadow relative to the captions in pixels. A value of -2 would result in a shadow offset 2 pixels to the left. All burn-in and DVB-Sub font settings must match.
        public let shadowXOffset: Int?
        /// Specifies the vertical offset of the shadow relative to the captions in pixels. A value of -2 would result in a shadow offset 2 pixels above the text. All burn-in and DVB-Sub font settings must match.
        public let shadowYOffset: Int?
        /// Specify whether your DVB subtitles are standard or for hearing impaired. Choose hearing impaired if your subtitles include audio descriptions and dialogue. Choose standard if your subtitles include only dialogue.
        public let subtitlingType: DvbSubtitlingType?
        /// Only applies to jobs with input captions in Teletext or STL formats. Specify whether the spacing between letters in your captions is set by the captions grid or varies depending on letter width. Choose fixed grid to conform to the spacing specified in the captions file more accurately. Choose proportional to make the text easier to read if the captions are closed caption.
        public let teletextSpacing: DvbSubtitleTeletextSpacing?
        /// Specifies the horizontal position of the caption relative to the left side of the output in pixels. A value of 10 would result in the captions starting 10 pixels from the left of the output. If no explicit x_position is provided, the horizontal caption position will be determined by the alignment parameter. This option is not valid for source captions that are STL, 608/embedded or teletext. These source settings are already pre-defined by the caption stream. All burn-in and DVB-Sub font settings must match.
        public let xPosition: Int?
        /// Specifies the vertical position of the caption relative to the top of the output in pixels. A value of 10 would result in the captions starting 10 pixels from the top of the output. If no explicit y_position is provided, the caption will be positioned towards the bottom of the output. This option is not valid for source captions that are STL, 608/embedded or teletext. These source settings are already pre-defined by the caption stream. All burn-in and DVB-Sub font settings must match.
        public let yPosition: Int?

        public init(alignment: DvbSubtitleAlignment? = nil, backgroundColor: DvbSubtitleBackgroundColor? = nil, backgroundOpacity: Int? = nil, fontColor: DvbSubtitleFontColor? = nil, fontOpacity: Int? = nil, fontResolution: Int? = nil, fontScript: FontScript? = nil, fontSize: Int? = nil, outlineColor: DvbSubtitleOutlineColor? = nil, outlineSize: Int? = nil, shadowColor: DvbSubtitleShadowColor? = nil, shadowOpacity: Int? = nil, shadowXOffset: Int? = nil, shadowYOffset: Int? = nil, subtitlingType: DvbSubtitlingType? = nil, teletextSpacing: DvbSubtitleTeletextSpacing? = nil, xPosition: Int? = nil, yPosition: Int? = nil) {
            self.alignment = alignment
            self.backgroundColor = backgroundColor
            self.backgroundOpacity = backgroundOpacity
            self.fontColor = fontColor
            self.fontOpacity = fontOpacity
            self.fontResolution = fontResolution
            self.fontScript = fontScript
            self.fontSize = fontSize
            self.outlineColor = outlineColor
            self.outlineSize = outlineSize
            self.shadowColor = shadowColor
            self.shadowOpacity = shadowOpacity
            self.shadowXOffset = shadowXOffset
            self.shadowYOffset = shadowYOffset
            self.subtitlingType = subtitlingType
            self.teletextSpacing = teletextSpacing
            self.xPosition = xPosition
            self.yPosition = yPosition
        }

        public func validate(name: String) throws {
            try self.validate(self.backgroundOpacity, name: "backgroundOpacity", parent: name, max: 255)
            try self.validate(self.backgroundOpacity, name: "backgroundOpacity", parent: name, min: 0)
            try self.validate(self.fontOpacity, name: "fontOpacity", parent: name, max: 255)
            try self.validate(self.fontOpacity, name: "fontOpacity", parent: name, min: 0)
            try self.validate(self.fontResolution, name: "fontResolution", parent: name, max: 600)
            try self.validate(self.fontResolution, name: "fontResolution", parent: name, min: 96)
            try self.validate(self.fontSize, name: "fontSize", parent: name, max: 96)
            try self.validate(self.fontSize, name: "fontSize", parent: name, min: 0)
            try self.validate(self.outlineSize, name: "outlineSize", parent: name, max: 10)
            try self.validate(self.outlineSize, name: "outlineSize", parent: name, min: 0)
            try self.validate(self.shadowOpacity, name: "shadowOpacity", parent: name, max: 255)
            try self.validate(self.shadowOpacity, name: "shadowOpacity", parent: name, min: 0)
            try self.validate(self.shadowXOffset, name: "shadowXOffset", parent: name, max: 2_147_483_647)
            try self.validate(self.shadowXOffset, name: "shadowXOffset", parent: name, min: -2_147_483_648)
            try self.validate(self.shadowYOffset, name: "shadowYOffset", parent: name, max: 2_147_483_647)
            try self.validate(self.shadowYOffset, name: "shadowYOffset", parent: name, min: -2_147_483_648)
            try self.validate(self.xPosition, name: "xPosition", parent: name, max: 2_147_483_647)
            try self.validate(self.xPosition, name: "xPosition", parent: name, min: 0)
            try self.validate(self.yPosition, name: "yPosition", parent: name, max: 2_147_483_647)
            try self.validate(self.yPosition, name: "yPosition", parent: name, min: 0)
        }

        private enum CodingKeys: String, CodingKey {
            case alignment
            case backgroundColor
            case backgroundOpacity
            case fontColor
            case fontOpacity
            case fontResolution
            case fontScript
            case fontSize
            case outlineColor
            case outlineSize
            case shadowColor
            case shadowOpacity
            case shadowXOffset
            case shadowYOffset
            case subtitlingType
            case teletextSpacing
            case xPosition
            case yPosition
        }
    }

    public struct DvbSubSourceSettings: AWSEncodableShape & AWSDecodableShape {
        /// When using DVB-Sub with Burn-In or SMPTE-TT, use this PID for the source content. Unused for DVB-Sub passthrough. All DVB-Sub content is passed through, regardless of selectors.
        public let pid: Int?

        public init(pid: Int? = nil) {
            self.pid = pid
        }

        public func validate(name: String) throws {
            try self.validate(self.pid, name: "pid", parent: name, max: 2_147_483_647)
            try self.validate(self.pid, name: "pid", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case pid
        }
    }

    public struct DvbTdtSettings: AWSEncodableShape & AWSDecodableShape {
        /// The number of milliseconds between instances of this table in the output transport stream.
        public let tdtInterval: Int?

        public init(tdtInterval: Int? = nil) {
            self.tdtInterval = tdtInterval
        }

        public func validate(name: String) throws {
            try self.validate(self.tdtInterval, name: "tdtInterval", parent: name, max: 30000)
            try self.validate(self.tdtInterval, name: "tdtInterval", parent: name, min: 1000)
        }

        private enum CodingKeys: String, CodingKey {
            case tdtInterval
        }
    }

    public struct Eac3AtmosSettings: AWSEncodableShape & AWSDecodableShape {
        /// Specify the average bitrate in bits per second.
        /// Valid values: 384k, 448k, 640k, 768k
        public let bitrate: Int?
        /// Specify the bitstream mode for the E-AC-3 stream that the encoder emits. For more information about the EAC3 bitstream mode, see ATSC A/52-2012 (Annex E).
        public let bitstreamMode: Eac3AtmosBitstreamMode?
        /// The coding mode for Dolby Digital Plus JOC (Atmos) is always 9.1.6 (CODING_MODE_9_1_6).
        public let codingMode: Eac3AtmosCodingMode?
        /// Enable Dolby Dialogue Intelligence to adjust loudness based on dialogue analysis.
        public let dialogueIntelligence: Eac3AtmosDialogueIntelligence?
        /// Specify the absolute peak level for a signal with dynamic range compression.
        public let dynamicRangeCompressionLine: Eac3AtmosDynamicRangeCompressionLine?
        /// Specify how the service limits the audio dynamic range when compressing the audio.
        public let dynamicRangeCompressionRf: Eac3AtmosDynamicRangeCompressionRf?
        /// Specify a value for the following Dolby Atmos setting: Left only/Right only center mix
        /// (Lo/Ro center). MediaConvert uses this value for downmixing. How the service uses this
        /// value depends on the value that you choose for Stereo downmix (Eac3AtmosStereoDownmix).
        /// Valid values: 3.0, 1.5, 0.0, -1.5, -3.0, -4.5, and -6.0.
        public let loRoCenterMixLevel: Double?
        /// Specify a value for the following Dolby Atmos setting: Left only/Right only (Lo/Ro surround). MediaConvert uses this value for downmixing. How the service uses this value depends on the value that you choose for Stereo downmix (Eac3AtmosStereoDownmix). Valid values: -1.5, -3.0, -4.5, -6.0, and -60. The value -60 mutes the channel.
        public let loRoSurroundMixLevel: Double?
        /// Specify a value for the following Dolby Atmos setting: Left total/Right total center mix (Lt/Rt center). MediaConvert uses this value for downmixing. How the service uses this value depends on the value that you choose for Stereo downmix (Eac3AtmosStereoDownmix). Valid values: 3.0, 1.5, 0.0, -1.5, -3.0, -4.5, and -6.0.
        public let ltRtCenterMixLevel: Double?
        /// Specify a value for the following Dolby Atmos setting: Left total/Right total surround mix (Lt/Rt surround). MediaConvert uses this value for downmixing. How the service uses this value depends on the value that you choose for Stereo downmix (Eac3AtmosStereoDownmix). Valid values: -1.5, -3.0, -4.5, -6.0, and -60. The value -60 mutes the channel.
        public let ltRtSurroundMixLevel: Double?
        /// Choose how the service meters the loudness of your audio.
        public let meteringMode: Eac3AtmosMeteringMode?
        /// This value is always 48000. It represents the sample rate in Hz.
        public let sampleRate: Int?
        /// Specify the percentage of audio content that must be speech before the encoder uses the measured speech loudness as the overall program loudness.
        public let speechThreshold: Int?
        /// Choose how the service does stereo downmixing.
        public let stereoDownmix: Eac3AtmosStereoDownmix?
        /// Specify whether your input audio has an additional center rear surround channel matrix encoded into your left and right surround channels.
        public let surroundExMode: Eac3AtmosSurroundExMode?

        public init(bitrate: Int? = nil, bitstreamMode: Eac3AtmosBitstreamMode? = nil, codingMode: Eac3AtmosCodingMode? = nil, dialogueIntelligence: Eac3AtmosDialogueIntelligence? = nil, dynamicRangeCompressionLine: Eac3AtmosDynamicRangeCompressionLine? = nil, dynamicRangeCompressionRf: Eac3AtmosDynamicRangeCompressionRf? = nil, loRoCenterMixLevel: Double? = nil, loRoSurroundMixLevel: Double? = nil, ltRtCenterMixLevel: Double? = nil, ltRtSurroundMixLevel: Double? = nil, meteringMode: Eac3AtmosMeteringMode? = nil, sampleRate: Int? = nil, speechThreshold: Int? = nil, stereoDownmix: Eac3AtmosStereoDownmix? = nil, surroundExMode: Eac3AtmosSurroundExMode? = nil) {
            self.bitrate = bitrate
            self.bitstreamMode = bitstreamMode
            self.codingMode = codingMode
            self.dialogueIntelligence = dialogueIntelligence
            self.dynamicRangeCompressionLine = dynamicRangeCompressionLine
            self.dynamicRangeCompressionRf = dynamicRangeCompressionRf
            self.loRoCenterMixLevel = loRoCenterMixLevel
            self.loRoSurroundMixLevel = loRoSurroundMixLevel
            self.ltRtCenterMixLevel = ltRtCenterMixLevel
            self.ltRtSurroundMixLevel = ltRtSurroundMixLevel
            self.meteringMode = meteringMode
            self.sampleRate = sampleRate
            self.speechThreshold = speechThreshold
            self.stereoDownmix = stereoDownmix
            self.surroundExMode = surroundExMode
        }

        public func validate(name: String) throws {
            try self.validate(self.bitrate, name: "bitrate", parent: name, max: 768_000)
            try self.validate(self.bitrate, name: "bitrate", parent: name, min: 384_000)
            try self.validate(self.sampleRate, name: "sampleRate", parent: name, max: 48000)
            try self.validate(self.sampleRate, name: "sampleRate", parent: name, min: 48000)
            try self.validate(self.speechThreshold, name: "speechThreshold", parent: name, max: 100)
            try self.validate(self.speechThreshold, name: "speechThreshold", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case bitrate
            case bitstreamMode
            case codingMode
            case dialogueIntelligence
            case dynamicRangeCompressionLine
            case dynamicRangeCompressionRf
            case loRoCenterMixLevel
            case loRoSurroundMixLevel
            case ltRtCenterMixLevel
            case ltRtSurroundMixLevel
            case meteringMode
            case sampleRate
            case speechThreshold
            case stereoDownmix
            case surroundExMode
        }
    }

    public struct Eac3Settings: AWSEncodableShape & AWSDecodableShape {
        /// If set to ATTENUATE_3_DB, applies a 3 dB attenuation to the surround channels. Only used for 3/2 coding mode.
        public let attenuationControl: Eac3AttenuationControl?
        /// Specify the average bitrate in bits per second. Valid bitrates depend on the coding mode.
        public let bitrate: Int?
        /// Specify the bitstream mode for the E-AC-3 stream that the encoder emits. For more information about the EAC3 bitstream mode, see ATSC A/52-2012 (Annex E).
        public let bitstreamMode: Eac3BitstreamMode?
        /// Dolby Digital Plus coding mode. Determines number of channels.
        public let codingMode: Eac3CodingMode?
        /// Activates a DC highpass filter for all input channels.
        public let dcFilter: Eac3DcFilter?
        /// Sets the dialnorm for the output. If blank and input audio is Dolby Digital Plus, dialnorm will be passed through.
        public let dialnorm: Int?
        /// Specify the absolute peak level for a signal with dynamic range compression.
        public let dynamicRangeCompressionLine: Eac3DynamicRangeCompressionLine?
        /// Specify how the service limits the audio dynamic range when compressing the audio.
        public let dynamicRangeCompressionRf: Eac3DynamicRangeCompressionRf?
        /// When encoding 3/2 audio, controls whether the LFE channel is enabled
        public let lfeControl: Eac3LfeControl?
        /// Applies a 120Hz lowpass filter to the LFE channel prior to encoding. Only valid with 3_2_LFE coding mode.
        public let lfeFilter: Eac3LfeFilter?
        /// Specify a value for the following Dolby Digital Plus setting: Left only/Right only center mix (Lo/Ro center). MediaConvert uses this value for downmixing. How the service uses this value depends on the value that you choose for Stereo downmix (Eac3StereoDownmix). Valid values: 3.0, 1.5, 0.0, -1.5, -3.0, -4.5, -6.0, and -60. The value -60 mutes the channel. This setting applies only if you keep the default value of 3/2 - L, R, C, Ls, Rs (CODING_MODE_3_2) for the setting Coding mode (Eac3CodingMode). If you choose a different value for Coding mode, the service ignores Left only/Right only center (loRoCenterMixLevel).
        public let loRoCenterMixLevel: Double?
        /// Specify a value for the following Dolby Digital Plus setting: Left only/Right only (Lo/Ro surround). MediaConvert uses this value for downmixing. How the service uses this value depends on the value that you choose for Stereo downmix (Eac3StereoDownmix). Valid values: -1.5, -3.0, -4.5, -6.0, and -60. The value -60 mutes the channel. This setting applies only if you keep the default value of 3/2 - L, R, C, Ls, Rs (CODING_MODE_3_2) for the setting Coding mode (Eac3CodingMode). If you choose a different value for Coding mode, the service ignores Left only/Right only surround (loRoSurroundMixLevel).
        public let loRoSurroundMixLevel: Double?
        /// Specify a value for the following Dolby Digital Plus setting: Left total/Right total center mix (Lt/Rt center). MediaConvert uses this value for downmixing. How the service uses this value depends on the value that you choose for Stereo downmix (Eac3StereoDownmix). Valid values: 3.0, 1.5, 0.0, -1.5, -3.0, -4.5, -6.0, and -60. The value -60 mutes the channel. This setting applies only if you keep the default value of 3/2 - L, R, C, Ls, Rs (CODING_MODE_3_2) for the setting Coding mode (Eac3CodingMode). If you choose a different value for Coding mode, the service ignores Left total/Right total center (ltRtCenterMixLevel).
        public let ltRtCenterMixLevel: Double?
        /// Specify a value for the following Dolby Digital Plus setting: Left total/Right total surround mix (Lt/Rt surround). MediaConvert uses this value for downmixing. How the service uses this value depends on the value that you choose for Stereo downmix (Eac3StereoDownmix). Valid values: -1.5, -3.0, -4.5, -6.0, and -60. The value -60 mutes the channel. This setting applies only if you keep the default value of 3/2 - L, R, C, Ls, Rs (CODING_MODE_3_2) for the setting Coding mode (Eac3CodingMode). If you choose a different value for Coding mode, the service ignores Left total/Right total surround (ltRtSurroundMixLevel).
        public let ltRtSurroundMixLevel: Double?
        /// When set to FOLLOW_INPUT, encoder metadata will be sourced from the DD, DD+, or DolbyE decoder that supplied this audio data. If audio was not supplied from one of these streams, then the static metadata settings will be used.
        public let metadataControl: Eac3MetadataControl?
        /// When set to WHEN_POSSIBLE, input DD+ audio will be passed through if it is present on the input. this detection is dynamic over the life of the transcode. Inputs that alternate between DD+ and non-DD+ content will have a consistent DD+ output as the system alternates between passthrough and encoding.
        public let passthroughControl: Eac3PassthroughControl?
        /// Controls the amount of phase-shift applied to the surround channels. Only used for 3/2 coding mode.
        public let phaseControl: Eac3PhaseControl?
        /// This value is always 48000. It represents the sample rate in Hz.
        public let sampleRate: Int?
        /// Choose how the service does stereo downmixing. This setting only applies if you keep the default value of 3/2 - L, R, C, Ls, Rs (CODING_MODE_3_2) for the setting Coding mode (Eac3CodingMode). If you choose a different value for Coding mode, the service ignores Stereo downmix (Eac3StereoDownmix).
        public let stereoDownmix: Eac3StereoDownmix?
        /// When encoding 3/2 audio, sets whether an extra center back surround channel is matrix encoded into the left and right surround channels.
        public let surroundExMode: Eac3SurroundExMode?
        /// When encoding 2/0 audio, sets whether Dolby Surround is matrix encoded into the two channels.
        public let surroundMode: Eac3SurroundMode?

        public init(attenuationControl: Eac3AttenuationControl? = nil, bitrate: Int? = nil, bitstreamMode: Eac3BitstreamMode? = nil, codingMode: Eac3CodingMode? = nil, dcFilter: Eac3DcFilter? = nil, dialnorm: Int? = nil, dynamicRangeCompressionLine: Eac3DynamicRangeCompressionLine? = nil, dynamicRangeCompressionRf: Eac3DynamicRangeCompressionRf? = nil, lfeControl: Eac3LfeControl? = nil, lfeFilter: Eac3LfeFilter? = nil, loRoCenterMixLevel: Double? = nil, loRoSurroundMixLevel: Double? = nil, ltRtCenterMixLevel: Double? = nil, ltRtSurroundMixLevel: Double? = nil, metadataControl: Eac3MetadataControl? = nil, passthroughControl: Eac3PassthroughControl? = nil, phaseControl: Eac3PhaseControl? = nil, sampleRate: Int? = nil, stereoDownmix: Eac3StereoDownmix? = nil, surroundExMode: Eac3SurroundExMode? = nil, surroundMode: Eac3SurroundMode? = nil) {
            self.attenuationControl = attenuationControl
            self.bitrate = bitrate
            self.bitstreamMode = bitstreamMode
            self.codingMode = codingMode
            self.dcFilter = dcFilter
            self.dialnorm = dialnorm
            self.dynamicRangeCompressionLine = dynamicRangeCompressionLine
            self.dynamicRangeCompressionRf = dynamicRangeCompressionRf
            self.lfeControl = lfeControl
            self.lfeFilter = lfeFilter
            self.loRoCenterMixLevel = loRoCenterMixLevel
            self.loRoSurroundMixLevel = loRoSurroundMixLevel
            self.ltRtCenterMixLevel = ltRtCenterMixLevel
            self.ltRtSurroundMixLevel = ltRtSurroundMixLevel
            self.metadataControl = metadataControl
            self.passthroughControl = passthroughControl
            self.phaseControl = phaseControl
            self.sampleRate = sampleRate
            self.stereoDownmix = stereoDownmix
            self.surroundExMode = surroundExMode
            self.surroundMode = surroundMode
        }

        public func validate(name: String) throws {
            try self.validate(self.bitrate, name: "bitrate", parent: name, max: 640_000)
            try self.validate(self.bitrate, name: "bitrate", parent: name, min: 64000)
            try self.validate(self.dialnorm, name: "dialnorm", parent: name, max: 31)
            try self.validate(self.dialnorm, name: "dialnorm", parent: name, min: 1)
            try self.validate(self.sampleRate, name: "sampleRate", parent: name, max: 48000)
            try self.validate(self.sampleRate, name: "sampleRate", parent: name, min: 48000)
        }

        private enum CodingKeys: String, CodingKey {
            case attenuationControl
            case bitrate
            case bitstreamMode
            case codingMode
            case dcFilter
            case dialnorm
            case dynamicRangeCompressionLine
            case dynamicRangeCompressionRf
            case lfeControl
            case lfeFilter
            case loRoCenterMixLevel
            case loRoSurroundMixLevel
            case ltRtCenterMixLevel
            case ltRtSurroundMixLevel
            case metadataControl
            case passthroughControl
            case phaseControl
            case sampleRate
            case stereoDownmix
            case surroundExMode
            case surroundMode
        }
    }

    public struct EmbeddedDestinationSettings: AWSEncodableShape & AWSDecodableShape {
        /// Ignore this setting unless your input captions are SCC format and your output captions are embedded in the video stream. Specify a CC number for each captions channel in this output. If you have two channels, choose CC numbers that aren't in the same field. For example, choose 1 and 3. For more information, see https://docs.aws.amazon.com/console/mediaconvert/dual-scc-to-embedded.
        public let destination608ChannelNumber: Int?
        /// Ignore this setting unless your input captions are SCC format and you want both 608 and 708 captions embedded in your output stream. Optionally, specify the 708 service number for each output captions channel. Choose a different number for each channel. To use this setting, also set Force 608 to 708 upconvert (Convert608To708) to Upconvert (UPCONVERT) in your input captions selector settings. If you choose to upconvert but don't specify a 708 service number, MediaConvert uses the number that you specify for CC channel number (destination608ChannelNumber) for the 708 service number. For more information, see https://docs.aws.amazon.com/console/mediaconvert/dual-scc-to-embedded.
        public let destination708ServiceNumber: Int?

        public init(destination608ChannelNumber: Int? = nil, destination708ServiceNumber: Int? = nil) {
            self.destination608ChannelNumber = destination608ChannelNumber
            self.destination708ServiceNumber = destination708ServiceNumber
        }

        public func validate(name: String) throws {
            try self.validate(self.destination608ChannelNumber, name: "destination608ChannelNumber", parent: name, max: 4)
            try self.validate(self.destination608ChannelNumber, name: "destination608ChannelNumber", parent: name, min: 1)
            try self.validate(self.destination708ServiceNumber, name: "destination708ServiceNumber", parent: name, max: 6)
            try self.validate(self.destination708ServiceNumber, name: "destination708ServiceNumber", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case destination608ChannelNumber
            case destination708ServiceNumber
        }
    }

    public struct EmbeddedSourceSettings: AWSEncodableShape & AWSDecodableShape {
        /// Specify whether this set of input captions appears in your outputs in both 608 and 708 format. If you choose Upconvert (UPCONVERT), MediaConvert includes the captions data in two ways: it passes the 608 data through using the 608 compatibility bytes fields of the 708 wrapper, and it also translates the 608 data into 708.
        public let convert608To708: EmbeddedConvert608To708?
        /// Specifies the 608/708 channel number within the video track from which to extract captions. Unused for passthrough.
        public let source608ChannelNumber: Int?
        /// Specifies the video track index used for extracting captions. The system only supports one input video track, so this should always be set to '1'.
        public let source608TrackNumber: Int?
        /// By default, the service terminates any unterminated captions at the end of each input. If you want the caption to continue onto your next input, disable this setting.
        public let terminateCaptions: EmbeddedTerminateCaptions?

        public init(convert608To708: EmbeddedConvert608To708? = nil, source608ChannelNumber: Int? = nil, source608TrackNumber: Int? = nil, terminateCaptions: EmbeddedTerminateCaptions? = nil) {
            self.convert608To708 = convert608To708
            self.source608ChannelNumber = source608ChannelNumber
            self.source608TrackNumber = source608TrackNumber
            self.terminateCaptions = terminateCaptions
        }

        public func validate(name: String) throws {
            try self.validate(self.source608ChannelNumber, name: "source608ChannelNumber", parent: name, max: 4)
            try self.validate(self.source608ChannelNumber, name: "source608ChannelNumber", parent: name, min: 1)
            try self.validate(self.source608TrackNumber, name: "source608TrackNumber", parent: name, max: 1)
            try self.validate(self.source608TrackNumber, name: "source608TrackNumber", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case convert608To708
            case source608ChannelNumber
            case source608TrackNumber
            case terminateCaptions
        }
    }

    public struct Endpoint: AWSDecodableShape {
        /// URL of endpoint
        public let url: String?

        public init(url: String? = nil) {
            self.url = url
        }

        private enum CodingKeys: String, CodingKey {
            case url
        }
    }

    public struct EsamManifestConfirmConditionNotification: AWSEncodableShape & AWSDecodableShape {
        /// Provide your ESAM ManifestConfirmConditionNotification XML document inside your JSON job settings. Form the XML document as per OC-SP-ESAM-API-I03-131025. The transcoder will use the Manifest Conditioning instructions in the message that you supply.
        public let mccXml: String?

        public init(mccXml: String? = nil) {
            self.mccXml = mccXml
        }

        public func validate(name: String) throws {
            try self.validate(self.mccXml, name: "mccXml", parent: name, pattern: "^\\s*<(.|\\n)*ManifestConfirmConditionNotification(.|\\n)*>\\s*$")
        }

        private enum CodingKeys: String, CodingKey {
            case mccXml
        }
    }

    public struct EsamSettings: AWSEncodableShape & AWSDecodableShape {
        /// Specifies an ESAM ManifestConfirmConditionNotification XML as per OC-SP-ESAM-API-I03-131025. The transcoder uses the manifest conditioning instructions that you provide in the setting MCC XML (mccXml).
        public let manifestConfirmConditionNotification: EsamManifestConfirmConditionNotification?
        /// Specifies the stream distance, in milliseconds, between the SCTE 35 messages that the transcoder places and the splice points that they refer to. If the time between the start of the asset and the SCTE-35 message is less than this value, then the transcoder places the SCTE-35 marker at the beginning of the stream.
        public let responseSignalPreroll: Int?
        /// Specifies an ESAM SignalProcessingNotification XML as per OC-SP-ESAM-API-I03-131025. The transcoder uses the signal processing instructions that you provide in the setting SCC XML (sccXml).
        public let signalProcessingNotification: EsamSignalProcessingNotification?

        public init(manifestConfirmConditionNotification: EsamManifestConfirmConditionNotification? = nil, responseSignalPreroll: Int? = nil, signalProcessingNotification: EsamSignalProcessingNotification? = nil) {
            self.manifestConfirmConditionNotification = manifestConfirmConditionNotification
            self.responseSignalPreroll = responseSignalPreroll
            self.signalProcessingNotification = signalProcessingNotification
        }

        public func validate(name: String) throws {
            try self.manifestConfirmConditionNotification?.validate(name: "\(name).manifestConfirmConditionNotification")
            try self.validate(self.responseSignalPreroll, name: "responseSignalPreroll", parent: name, max: 30000)
            try self.validate(self.responseSignalPreroll, name: "responseSignalPreroll", parent: name, min: 0)
            try self.signalProcessingNotification?.validate(name: "\(name).signalProcessingNotification")
        }

        private enum CodingKeys: String, CodingKey {
            case manifestConfirmConditionNotification
            case responseSignalPreroll
            case signalProcessingNotification
        }
    }

    public struct EsamSignalProcessingNotification: AWSEncodableShape & AWSDecodableShape {
        /// Provide your ESAM SignalProcessingNotification XML document inside your JSON job settings. Form the XML document as per OC-SP-ESAM-API-I03-131025. The transcoder will use the signal processing instructions in the message that you supply. Provide your ESAM SignalProcessingNotification XML document inside your JSON job settings. For your MPEG2-TS file outputs, if you want the service to place SCTE-35 markers at the insertion points you specify in the XML document, you must also enable SCTE-35 ESAM (scte35Esam). Note that you can either specify an ESAM XML document or enable SCTE-35 passthrough. You can't do both.
        public let sccXml: String?

        public init(sccXml: String? = nil) {
            self.sccXml = sccXml
        }

        public func validate(name: String) throws {
            try self.validate(self.sccXml, name: "sccXml", parent: name, pattern: "^\\s*<(.|\\n)*SignalProcessingNotification(.|\\n)*>\\s*$")
        }

        private enum CodingKeys: String, CodingKey {
            case sccXml
        }
    }

    public struct F4vSettings: AWSEncodableShape & AWSDecodableShape {
        /// If set to PROGRESSIVE_DOWNLOAD, the MOOV atom is relocated to the beginning of the archive as required for progressive downloading. Otherwise it is placed normally at the end.
        public let moovPlacement: F4vMoovPlacement?

        public init(moovPlacement: F4vMoovPlacement? = nil) {
            self.moovPlacement = moovPlacement
        }

        private enum CodingKeys: String, CodingKey {
            case moovPlacement
        }
    }

    public struct FileGroupSettings: AWSEncodableShape & AWSDecodableShape {
        /// Use Destination (Destination) to specify the S3 output location and the output filename base. Destination accepts format identifiers. If you do not specify the base filename in the URI, the service will use the filename of the input file. If your job has multiple inputs, the service uses the filename of the first input file.
        public let destination: String?
        /// Settings associated with the destination. Will vary based on the type of destination
        public let destinationSettings: DestinationSettings?

        public init(destination: String? = nil, destinationSettings: DestinationSettings? = nil) {
            self.destination = destination
            self.destinationSettings = destinationSettings
        }

        public func validate(name: String) throws {
            try self.validate(self.destination, name: "destination", parent: name, pattern: "^s3:\\/\\/")
            try self.destinationSettings?.validate(name: "\(name).destinationSettings")
        }

        private enum CodingKeys: String, CodingKey {
            case destination
            case destinationSettings
        }
    }

    public struct FileSourceSettings: AWSEncodableShape & AWSDecodableShape {
        /// Specify whether this set of input captions appears in your outputs in both 608 and 708 format. If you choose Upconvert (UPCONVERT), MediaConvert includes the captions data in two ways: it passes the 608 data through using the 608 compatibility bytes fields of the 708 wrapper, and it also translates the 608 data into 708.
        public let convert608To708: FileSourceConvert608To708?
        /// Ignore this setting unless your input captions format is SCC. To have the service compensate for differing frame rates between your input captions and input video, specify the frame rate of the captions file. Specify this value as a fraction, using the settings Framerate numerator (framerateNumerator) and Framerate denominator (framerateDenominator). For example, you might specify 24 / 1 for 24 fps, 25 / 1 for 25 fps, 24000 / 1001 for 23.976 fps, or 30000 / 1001 for 29.97 fps.
        public let framerate: CaptionSourceFramerate?
        /// External caption file used for loading captions. Accepted file extensions are 'scc', 'ttml', 'dfxp', 'stl', 'srt', 'xml', and 'smi'.
        public let sourceFile: String?
        /// Specifies a time delta in seconds to offset the captions from the source file.
        public let timeDelta: Int?

        public init(convert608To708: FileSourceConvert608To708? = nil, framerate: CaptionSourceFramerate? = nil, sourceFile: String? = nil, timeDelta: Int? = nil) {
            self.convert608To708 = convert608To708
            self.framerate = framerate
            self.sourceFile = sourceFile
            self.timeDelta = timeDelta
        }

        public func validate(name: String) throws {
            try self.framerate?.validate(name: "\(name).framerate")
            try self.validate(self.sourceFile, name: "sourceFile", parent: name, min: 14)
            try self.validate(self.sourceFile, name: "sourceFile", parent: name, pattern: "^((s3://(.*?)\\.(scc|SCC|ttml|TTML|dfxp|DFXP|stl|STL|srt|SRT|xml|XML|smi|SMI))|(https?://(.*?)\\.(scc|SCC|ttml|TTML|dfxp|DFXP|stl|STL|srt|SRT|xml|XML|smi|SMI)(\\?([^&=]+=[^&]+&)*[^&=]+=[^&]+)?))$")
            try self.validate(self.timeDelta, name: "timeDelta", parent: name, max: 2_147_483_647)
            try self.validate(self.timeDelta, name: "timeDelta", parent: name, min: -2_147_483_648)
        }

        private enum CodingKeys: String, CodingKey {
            case convert608To708
            case framerate
            case sourceFile
            case timeDelta
        }
    }

    public struct FrameCaptureSettings: AWSEncodableShape & AWSDecodableShape {
        /// Frame capture will encode the first frame of the output stream, then one frame every framerateDenominator/framerateNumerator seconds. For example, settings of framerateNumerator = 1 and framerateDenominator = 3 (a rate of 1/3 frame per second) will capture the first frame, then 1 frame every 3s. Files will be named as filename.n.jpg where n is the 0-based sequence number of each Capture.
        public let framerateDenominator: Int?
        /// Frame capture will encode the first frame of the output stream, then one frame every framerateDenominator/framerateNumerator seconds. For example, settings of framerateNumerator = 1 and framerateDenominator = 3 (a rate of 1/3 frame per second) will capture the first frame, then 1 frame every 3s. Files will be named as filename.NNNNNNN.jpg where N is the 0-based frame sequence number zero padded to 7 decimal places.
        public let framerateNumerator: Int?
        /// Maximum number of captures (encoded jpg output files).
        public let maxCaptures: Int?
        /// JPEG Quality - a higher value equals higher quality.
        public let quality: Int?

        public init(framerateDenominator: Int? = nil, framerateNumerator: Int? = nil, maxCaptures: Int? = nil, quality: Int? = nil) {
            self.framerateDenominator = framerateDenominator
            self.framerateNumerator = framerateNumerator
            self.maxCaptures = maxCaptures
            self.quality = quality
        }

        public func validate(name: String) throws {
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, max: 2_147_483_647)
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, min: 1)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, max: 2_147_483_647)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, min: 1)
            try self.validate(self.maxCaptures, name: "maxCaptures", parent: name, max: 10_000_000)
            try self.validate(self.maxCaptures, name: "maxCaptures", parent: name, min: 1)
            try self.validate(self.quality, name: "quality", parent: name, max: 100)
            try self.validate(self.quality, name: "quality", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case framerateDenominator
            case framerateNumerator
            case maxCaptures
            case quality
        }
    }

    public struct GetJobRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "id", location: .uri(locationName: "id"))
        ]

        /// the job ID of the job.
        public let id: String

        public init(id: String) {
            self.id = id
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct GetJobResponse: AWSDecodableShape {
        /// Each job converts an input file into an output file or files. For more information, see the User Guide at https://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html
        public let job: Job?

        public init(job: Job? = nil) {
            self.job = job
        }

        private enum CodingKeys: String, CodingKey {
            case job
        }
    }

    public struct GetJobTemplateRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "name", location: .uri(locationName: "name"))
        ]

        /// The name of the job template.
        public let name: String

        public init(name: String) {
            self.name = name
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct GetJobTemplateResponse: AWSDecodableShape {
        /// A job template is a pre-made set of encoding instructions that you can use to quickly create a job.
        public let jobTemplate: JobTemplate?

        public init(jobTemplate: JobTemplate? = nil) {
            self.jobTemplate = jobTemplate
        }

        private enum CodingKeys: String, CodingKey {
            case jobTemplate
        }
    }

    public struct GetPresetRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "name", location: .uri(locationName: "name"))
        ]

        /// The name of the preset.
        public let name: String

        public init(name: String) {
            self.name = name
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct GetPresetResponse: AWSDecodableShape {
        /// A preset is a collection of preconfigured media conversion settings that you want MediaConvert to apply to the output during the conversion process.
        public let preset: Preset?

        public init(preset: Preset? = nil) {
            self.preset = preset
        }

        private enum CodingKeys: String, CodingKey {
            case preset
        }
    }

    public struct GetQueueRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "name", location: .uri(locationName: "name"))
        ]

        /// The name of the queue that you want information about.
        public let name: String

        public init(name: String) {
            self.name = name
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct GetQueueResponse: AWSDecodableShape {
        /// You can use queues to manage the resources that are available to your AWS account for running multiple transcoding jobs at the same time. If you don't specify a queue, the service sends all jobs through the default queue. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/working-with-queues.html.
        public let queue: Queue?

        public init(queue: Queue? = nil) {
            self.queue = queue
        }

        private enum CodingKeys: String, CodingKey {
            case queue
        }
    }

    public struct H264QvbrSettings: AWSEncodableShape & AWSDecodableShape {
        /// Use this setting only when Rate control mode is QVBR and Quality tuning level is Multi-pass HQ. For Max average bitrate values suited to the complexity of your input video, the service limits the average bitrate of the video part of this output to the value that you choose. That is, the total size of the video element is less than or equal to the value you set multiplied by the number of seconds of encoded output.
        public let maxAverageBitrate: Int?
        /// Required when you use QVBR rate control mode. That is, when you specify qvbrSettings within h264Settings. Specify the general target quality level for this output, from 1 to 10. Use higher numbers for greater quality. Level 10 results in nearly lossless compression. The quality level for most broadcast-quality transcodes is between 6 and 9. Optionally, to specify a value between whole numbers, also provide a value for the setting qvbrQualityLevelFineTune. For example, if you want your QVBR quality level to be 7.33, set qvbrQualityLevel to 7 and set qvbrQualityLevelFineTune to .33.
        public let qvbrQualityLevel: Int?
        /// Optional. Specify a value here to set the QVBR quality to a level that is between whole numbers. For example, if you want your QVBR quality level to be 7.33, set qvbrQualityLevel to 7 and set qvbrQualityLevelFineTune to .33. MediaConvert rounds your QVBR quality level to the nearest third of a whole number. For example, if you set qvbrQualityLevel to 7 and you set qvbrQualityLevelFineTune to .25, your actual QVBR quality level is 7.33.
        public let qvbrQualityLevelFineTune: Double?

        public init(maxAverageBitrate: Int? = nil, qvbrQualityLevel: Int? = nil, qvbrQualityLevelFineTune: Double? = nil) {
            self.maxAverageBitrate = maxAverageBitrate
            self.qvbrQualityLevel = qvbrQualityLevel
            self.qvbrQualityLevelFineTune = qvbrQualityLevelFineTune
        }

        public func validate(name: String) throws {
            try self.validate(self.maxAverageBitrate, name: "maxAverageBitrate", parent: name, max: 1_152_000_000)
            try self.validate(self.maxAverageBitrate, name: "maxAverageBitrate", parent: name, min: 1000)
            try self.validate(self.qvbrQualityLevel, name: "qvbrQualityLevel", parent: name, max: 10)
            try self.validate(self.qvbrQualityLevel, name: "qvbrQualityLevel", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case maxAverageBitrate
            case qvbrQualityLevel
            case qvbrQualityLevelFineTune
        }
    }

    public struct H264Settings: AWSEncodableShape & AWSDecodableShape {
        /// Keep the default value, Auto (AUTO), for this setting to have MediaConvert automatically apply the best types of quantization for your video content. When you want to apply your quantization settings manually, you must set H264AdaptiveQuantization to a value other than Auto (AUTO). Use this setting to specify the strength of any adaptive quantization filters that you enable. If you don't want MediaConvert to do any adaptive quantization in this transcode, set Adaptive quantization (H264AdaptiveQuantization) to Off (OFF). Related settings: The value that you choose here applies to the following settings: H264FlickerAdaptiveQuantization, H264SpatialAdaptiveQuantization, and H264TemporalAdaptiveQuantization.
        public let adaptiveQuantization: H264AdaptiveQuantization?
        /// Specify the average bitrate in bits per second. Required for VBR and CBR. For MS Smooth outputs, bitrates must be unique when rounded down to the nearest multiple of 1000.
        public let bitrate: Int?
        /// Specify an H.264 level that is consistent with your output video settings. If you aren't sure what level to specify, choose Auto (AUTO).
        public let codecLevel: H264CodecLevel?
        /// H.264 Profile. High 4:2:2 and 10-bit profiles are only available with the AVC-I License.
        public let codecProfile: H264CodecProfile?
        /// Choose Adaptive to improve subjective video quality for high-motion content. This will cause the service to use fewer B-frames (which infer information based on other frames) for high-motion portions of the video and more B-frames for low-motion portions. The maximum number of B-frames is limited by the value you provide for the setting B frames between reference frames (numberBFramesBetweenReferenceFrames).
        public let dynamicSubGop: H264DynamicSubGop?
        /// Entropy encoding mode. Use CABAC (must be in Main or High profile) or CAVLC.
        public let entropyEncoding: H264EntropyEncoding?
        /// Keep the default value, PAFF, to have MediaConvert use PAFF encoding for interlaced outputs. Choose Force field (FORCE_FIELD) to disable PAFF encoding and create separate interlaced fields.
        public let fieldEncoding: H264FieldEncoding?
        /// Only use this setting when you change the default value, AUTO, for the setting H264AdaptiveQuantization. When you keep all defaults, excluding H264AdaptiveQuantization and all other adaptive quantization from your JSON job specification, MediaConvert automatically applies the best types of quantization for your video content. When you set H264AdaptiveQuantization to a value other than AUTO, the default value for H264FlickerAdaptiveQuantization is Disabled (DISABLED). Change this value to Enabled (ENABLED) to reduce I-frame pop. I-frame pop appears as a visual flicker that can arise when the encoder saves bits by copying some macroblocks many times from frame to frame, and then refreshes them at the I-frame. When you enable this setting, the encoder updates these macroblocks slightly more often to smooth out the flicker. To manually enable or disable H264FlickerAdaptiveQuantization, you must set Adaptive quantization (H264AdaptiveQuantization) to a value other than AUTO.
        public let flickerAdaptiveQuantization: H264FlickerAdaptiveQuantization?
        /// If you are using the console, use the Framerate setting to specify the frame rate for this output. If you want to keep the same frame rate as the input video, choose Follow source. If you want to do frame rate conversion, choose a frame rate from the dropdown list or choose Custom. The framerates shown in the dropdown list are decimal approximations of fractions. If you choose Custom, specify your frame rate as a fraction. If you are creating your transcoding job specification as a JSON file without the console, use FramerateControl to specify which value the service uses for the frame rate for this output. Choose INITIALIZE_FROM_SOURCE if you want the service to use the frame rate from the input. Choose SPECIFIED if you want the service to use the frame rate you specify in the settings FramerateNumerator and FramerateDenominator.
        public let framerateControl: H264FramerateControl?
        /// Choose the method that you want MediaConvert to use when increasing or decreasing the frame rate. We recommend using drop duplicate (DUPLICATE_DROP) for numerically simple conversions, such as 60 fps to 30 fps. For numerically complex conversions, you can use interpolate (INTERPOLATE) to avoid stutter. This results in a smooth picture, but might introduce undesirable video artifacts. For complex frame rate conversions, especially if your source video has already been converted from its original cadence, use FrameFormer (FRAMEFORMER) to do motion-compensated interpolation. FrameFormer chooses the best conversion method frame by frame. Note that using FrameFormer increases the transcoding time and incurs a significant add-on cost.
        public let framerateConversionAlgorithm: H264FramerateConversionAlgorithm?
        /// When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example,  24000 / 1001 = 23.976 fps. Use FramerateDenominator to specify the denominator of this fraction. In this example, use 1001 for the value of FramerateDenominator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
        public let framerateDenominator: Int?
        /// When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example,  24000 / 1001 = 23.976 fps. Use FramerateNumerator to specify the numerator of this fraction. In this example, use 24000 for the value of FramerateNumerator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
        public let framerateNumerator: Int?
        /// If enable, use reference B frames for GOP structures that have B frames > 1.
        public let gopBReference: H264GopBReference?
        /// Frequency of closed GOPs. In streaming applications, it is recommended that this be set to 1 so a decoder joining mid-stream will receive an IDR frame as quickly as possible. Setting this value to 0 will break output segmenting.
        public let gopClosedCadence: Int?
        /// GOP Length (keyframe interval) in frames or seconds. Must be greater than zero.
        public let gopSize: Double?
        /// Indicates if the GOP Size in H264 is specified in frames or seconds. If seconds the system will convert the GOP Size into a frame count at run time.
        public let gopSizeUnits: H264GopSizeUnits?
        /// Percentage of the buffer that should initially be filled (HRD buffer model).
        public let hrdBufferInitialFillPercentage: Int?
        /// Size of buffer (HRD buffer model) in bits. For example, enter five megabits as 5000000.
        public let hrdBufferSize: Int?
        /// Choose the scan line type for the output. Keep the default value, Progressive (PROGRESSIVE) to create a progressive output, regardless of the scan type of your input. Use Top field first (TOP_FIELD) or Bottom field first (BOTTOM_FIELD) to create an output that's interlaced with the same field polarity throughout. Use Follow, default top (FOLLOW_TOP_FIELD) or Follow, default bottom (FOLLOW_BOTTOM_FIELD) to produce outputs with the same field polarity as the source. For jobs that have multiple inputs, the output field polarity might change over the course of the output. Follow behavior depends on the input scan type. If the source is interlaced, the output will be interlaced with the same polarity as the source. If the source is progressive, the output will be interlaced with top field bottom field first, depending on which of the Follow options you choose.
        public let interlaceMode: H264InterlaceMode?
        /// Maximum bitrate in bits/second. For example, enter five megabits per second as 5000000. Required when Rate control mode is QVBR.
        public let maxBitrate: Int?
        /// Enforces separation between repeated (cadence) I-frames and I-frames inserted by Scene Change Detection. If a scene change I-frame is within I-interval frames of a cadence I-frame, the GOP is shrunk and/or stretched to the scene change I-frame. GOP stretch requires enabling lookahead as well as setting I-interval. The normal cadence resumes for the next GOP. This setting is only used when Scene Change Detect is enabled. Note: Maximum GOP stretch = GOP size + Min-I-interval - 1
        public let minIInterval: Int?
        /// Number of B-frames between reference frames.
        public let numberBFramesBetweenReferenceFrames: Int?
        /// Number of reference frames to use. The encoder may use more than requested if using B-frames and/or interlaced encoding.
        public let numberReferenceFrames: Int?
        /// Optional. Specify how the service determines the pixel aspect ratio (PAR) for this output. The default behavior, Follow source (INITIALIZE_FROM_SOURCE), uses the PAR from your input video for your output. To specify a different PAR in the console, choose any value other than Follow source. To specify a different PAR by editing the JSON job specification, choose SPECIFIED. When you choose SPECIFIED for this setting, you must also specify values for the parNumerator and parDenominator settings.
        public let parControl: H264ParControl?
        /// Required when you set Pixel aspect ratio (parControl) to SPECIFIED. On the console, this corresponds to any value other than Follow source. When you specify an output pixel aspect ratio (PAR) that is different from your input video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC widescreen, you would specify the ratio 40:33. In this example, the value for parDenominator is 33.
        public let parDenominator: Int?
        /// Required when you set Pixel aspect ratio (parControl) to SPECIFIED. On the console, this corresponds to any value other than Follow source. When you specify an output pixel aspect ratio (PAR) that is different from your input video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC widescreen, you would specify the ratio 40:33. In this example, the value for parNumerator is 40.
        public let parNumerator: Int?
        /// Optional. Use Quality tuning level (qualityTuningLevel) to choose how you want to trade off encoding speed for output video quality. The default behavior is faster, lower quality, single-pass encoding.
        public let qualityTuningLevel: H264QualityTuningLevel?
        /// Settings for quality-defined variable bitrate encoding with the H.264 codec. Required when you set Rate control mode to QVBR. Not valid when you set Rate control mode to a value other than QVBR, or when you don't define Rate control mode.
        public let qvbrSettings: H264QvbrSettings?
        /// Use this setting to specify whether this output has a variable bitrate (VBR), constant bitrate (CBR) or quality-defined variable bitrate (QVBR).
        public let rateControlMode: H264RateControlMode?
        /// Places a PPS header on each encoded picture, even if repeated.
        public let repeatPps: H264RepeatPps?
        /// Use this setting for interlaced outputs, when your output frame rate is half of your input frame rate. In this situation, choose Optimized interlacing (INTERLACED_OPTIMIZE) to create a better quality interlaced output. In this case, each progressive frame from the input corresponds to an interlaced field in the output. Keep the default value, Basic interlacing (INTERLACED), for all other output frame rates. With basic interlacing, MediaConvert performs any frame rate conversion first and then interlaces the frames. When you choose Optimized interlacing and you set your output frame rate to a value that isn't suitable for optimized interlacing, MediaConvert automatically falls back to basic interlacing. Required settings: To use optimized interlacing, you must set Telecine (telecine) to None (NONE) or Soft (SOFT). You can't use optimized interlacing for hard telecine outputs. You must also set Interlace mode (interlaceMode) to a value other than Progressive (PROGRESSIVE).
        public let scanTypeConversionMode: H264ScanTypeConversionMode?
        /// Enable this setting to insert I-frames at scene changes that the service automatically detects. This improves video quality and is enabled by default. If this output uses QVBR, choose Transition detection (TRANSITION_DETECTION) for further video quality improvement. For more information about QVBR, see https://docs.aws.amazon.com/console/mediaconvert/cbr-vbr-qvbr.
        public let sceneChangeDetect: H264SceneChangeDetect?
        /// Number of slices per picture. Must be less than or equal to the number of macroblock rows for progressive pictures, and less than or equal to half the number of macroblock rows for interlaced pictures.
        public let slices: Int?
        /// Ignore this setting unless your input frame rate is 23.976 or 24 frames per second (fps). Enable slow PAL to create a 25 fps output. When you enable slow PAL, MediaConvert relabels the video frames to 25 fps and resamples your audio to keep it synchronized with the video. Note that enabling this setting will slightly reduce the duration of your video. Required settings: You must also set Framerate to 25. In your JSON job specification, set (framerateControl) to (SPECIFIED), (framerateNumerator) to 25 and (framerateDenominator) to 1.
        public let slowPal: H264SlowPal?
        /// Ignore this setting unless you need to comply with a specification that requires a specific value. If you don't have a specification requirement, we recommend that you adjust the softness of your output by using a lower value for the setting Sharpness (sharpness) or by enabling a noise reducer filter (noiseReducerFilter). The Softness (softness) setting specifies the quantization matrices that the encoder uses. Keep the default value, 0, for flat quantization. Choose the value 1 or 16 to use the default JVT softening quantization matricies from the H.264 specification. Choose a value from 17 to 128 to use planar interpolation. Increasing values from 17 to 128 result in increasing reduction of high-frequency data. The value 128 results in the softest video.
        public let softness: Int?
        /// Only use this setting when you change the default value, Auto (AUTO), for the setting H264AdaptiveQuantization. When you keep all defaults, excluding H264AdaptiveQuantization and all other adaptive quantization from your JSON job specification, MediaConvert automatically applies the best types of quantization for your video content. When you set H264AdaptiveQuantization to a value other than AUTO, the default value for H264SpatialAdaptiveQuantization is Enabled (ENABLED). Keep this default value to adjust quantization within each frame based on spatial variation of content complexity. When you enable this feature, the encoder uses fewer bits on areas that can sustain more distortion with no noticeable visual degradation and uses more bits on areas where any small distortion will be noticeable. For example, complex textured blocks are encoded with fewer bits and smooth textured blocks are encoded with more bits. Enabling this feature will almost always improve your video quality. Note, though, that this feature doesn't take into account where the viewer's attention is likely to be. If viewers are likely to be focusing their attention on a part of the screen with a lot of complex texture, you might choose to set H264SpatialAdaptiveQuantization to Disabled (DISABLED). Related setting: When you enable spatial adaptive quantization, set the value for Adaptive quantization (H264AdaptiveQuantization) depending on your content. For homogeneous content, such as cartoons and video games, set it to Low. For content with a wider variety of textures, set it to High or Higher. To manually enable or disable H264SpatialAdaptiveQuantization, you must set Adaptive quantization (H264AdaptiveQuantization) to a value other than AUTO.
        public let spatialAdaptiveQuantization: H264SpatialAdaptiveQuantization?
        /// Produces a bitstream compliant with SMPTE RP-2027.
        public let syntax: H264Syntax?
        /// When you do frame rate conversion from 23.976 frames per second (fps) to 29.97 fps, and your output scan type is interlaced, you can optionally enable hard or soft telecine to create a smoother picture. Hard telecine (HARD) produces a 29.97i output. Soft telecine (SOFT) produces an output with a 23.976 output that signals to the video player device to do the conversion during play back. When you keep the default value, None (NONE), MediaConvert does a standard frame rate conversion to 29.97 without doing anything with the field polarity to create a smoother picture.
        public let telecine: H264Telecine?
        /// Only use this setting when you change the default value, AUTO, for the setting H264AdaptiveQuantization. When you keep all defaults, excluding H264AdaptiveQuantization and all other adaptive quantization from your JSON job specification, MediaConvert automatically applies the best types of quantization for your video content. When you set H264AdaptiveQuantization to a value other than AUTO, the default value for H264TemporalAdaptiveQuantization is Enabled (ENABLED). Keep this default value to adjust quantization within each frame based on temporal variation of content complexity. When you enable this feature, the encoder uses fewer bits on areas of the frame that aren't moving and uses more bits on complex objects with sharp edges that move a lot. For example, this feature improves the readability of text tickers on newscasts and scoreboards on sports matches. Enabling this feature will almost always improve your video quality. Note, though, that this feature doesn't take into account where the viewer's attention is likely to be. If viewers are likely to be focusing their attention on a part of the screen that doesn't have moving objects with sharp edges, such as sports athletes' faces, you might choose to set H264TemporalAdaptiveQuantization to Disabled (DISABLED). Related setting: When you enable temporal quantization, adjust the strength of the filter with the setting Adaptive quantization (adaptiveQuantization). To manually enable or disable H264TemporalAdaptiveQuantization, you must set Adaptive quantization (H264AdaptiveQuantization) to a value other than AUTO.
        public let temporalAdaptiveQuantization: H264TemporalAdaptiveQuantization?
        /// Inserts timecode for each frame as 4 bytes of an unregistered SEI message.
        public let unregisteredSeiTimecode: H264UnregisteredSeiTimecode?

        public init(adaptiveQuantization: H264AdaptiveQuantization? = nil, bitrate: Int? = nil, codecLevel: H264CodecLevel? = nil, codecProfile: H264CodecProfile? = nil, dynamicSubGop: H264DynamicSubGop? = nil, entropyEncoding: H264EntropyEncoding? = nil, fieldEncoding: H264FieldEncoding? = nil, flickerAdaptiveQuantization: H264FlickerAdaptiveQuantization? = nil, framerateControl: H264FramerateControl? = nil, framerateConversionAlgorithm: H264FramerateConversionAlgorithm? = nil, framerateDenominator: Int? = nil, framerateNumerator: Int? = nil, gopBReference: H264GopBReference? = nil, gopClosedCadence: Int? = nil, gopSize: Double? = nil, gopSizeUnits: H264GopSizeUnits? = nil, hrdBufferInitialFillPercentage: Int? = nil, hrdBufferSize: Int? = nil, interlaceMode: H264InterlaceMode? = nil, maxBitrate: Int? = nil, minIInterval: Int? = nil, numberBFramesBetweenReferenceFrames: Int? = nil, numberReferenceFrames: Int? = nil, parControl: H264ParControl? = nil, parDenominator: Int? = nil, parNumerator: Int? = nil, qualityTuningLevel: H264QualityTuningLevel? = nil, qvbrSettings: H264QvbrSettings? = nil, rateControlMode: H264RateControlMode? = nil, repeatPps: H264RepeatPps? = nil, scanTypeConversionMode: H264ScanTypeConversionMode? = nil, sceneChangeDetect: H264SceneChangeDetect? = nil, slices: Int? = nil, slowPal: H264SlowPal? = nil, softness: Int? = nil, spatialAdaptiveQuantization: H264SpatialAdaptiveQuantization? = nil, syntax: H264Syntax? = nil, telecine: H264Telecine? = nil, temporalAdaptiveQuantization: H264TemporalAdaptiveQuantization? = nil, unregisteredSeiTimecode: H264UnregisteredSeiTimecode? = nil) {
            self.adaptiveQuantization = adaptiveQuantization
            self.bitrate = bitrate
            self.codecLevel = codecLevel
            self.codecProfile = codecProfile
            self.dynamicSubGop = dynamicSubGop
            self.entropyEncoding = entropyEncoding
            self.fieldEncoding = fieldEncoding
            self.flickerAdaptiveQuantization = flickerAdaptiveQuantization
            self.framerateControl = framerateControl
            self.framerateConversionAlgorithm = framerateConversionAlgorithm
            self.framerateDenominator = framerateDenominator
            self.framerateNumerator = framerateNumerator
            self.gopBReference = gopBReference
            self.gopClosedCadence = gopClosedCadence
            self.gopSize = gopSize
            self.gopSizeUnits = gopSizeUnits
            self.hrdBufferInitialFillPercentage = hrdBufferInitialFillPercentage
            self.hrdBufferSize = hrdBufferSize
            self.interlaceMode = interlaceMode
            self.maxBitrate = maxBitrate
            self.minIInterval = minIInterval
            self.numberBFramesBetweenReferenceFrames = numberBFramesBetweenReferenceFrames
            self.numberReferenceFrames = numberReferenceFrames
            self.parControl = parControl
            self.parDenominator = parDenominator
            self.parNumerator = parNumerator
            self.qualityTuningLevel = qualityTuningLevel
            self.qvbrSettings = qvbrSettings
            self.rateControlMode = rateControlMode
            self.repeatPps = repeatPps
            self.scanTypeConversionMode = scanTypeConversionMode
            self.sceneChangeDetect = sceneChangeDetect
            self.slices = slices
            self.slowPal = slowPal
            self.softness = softness
            self.spatialAdaptiveQuantization = spatialAdaptiveQuantization
            self.syntax = syntax
            self.telecine = telecine
            self.temporalAdaptiveQuantization = temporalAdaptiveQuantization
            self.unregisteredSeiTimecode = unregisteredSeiTimecode
        }

        public func validate(name: String) throws {
            try self.validate(self.bitrate, name: "bitrate", parent: name, max: 1_152_000_000)
            try self.validate(self.bitrate, name: "bitrate", parent: name, min: 1000)
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, max: 2_147_483_647)
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, min: 1)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, max: 2_147_483_647)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, min: 1)
            try self.validate(self.gopClosedCadence, name: "gopClosedCadence", parent: name, max: 2_147_483_647)
            try self.validate(self.gopClosedCadence, name: "gopClosedCadence", parent: name, min: 0)
            try self.validate(self.hrdBufferInitialFillPercentage, name: "hrdBufferInitialFillPercentage", parent: name, max: 100)
            try self.validate(self.hrdBufferInitialFillPercentage, name: "hrdBufferInitialFillPercentage", parent: name, min: 0)
            try self.validate(self.hrdBufferSize, name: "hrdBufferSize", parent: name, max: 1_152_000_000)
            try self.validate(self.hrdBufferSize, name: "hrdBufferSize", parent: name, min: 0)
            try self.validate(self.maxBitrate, name: "maxBitrate", parent: name, max: 1_152_000_000)
            try self.validate(self.maxBitrate, name: "maxBitrate", parent: name, min: 1000)
            try self.validate(self.minIInterval, name: "minIInterval", parent: name, max: 30)
            try self.validate(self.minIInterval, name: "minIInterval", parent: name, min: 0)
            try self.validate(self.numberBFramesBetweenReferenceFrames, name: "numberBFramesBetweenReferenceFrames", parent: name, max: 7)
            try self.validate(self.numberBFramesBetweenReferenceFrames, name: "numberBFramesBetweenReferenceFrames", parent: name, min: 0)
            try self.validate(self.numberReferenceFrames, name: "numberReferenceFrames", parent: name, max: 6)
            try self.validate(self.numberReferenceFrames, name: "numberReferenceFrames", parent: name, min: 1)
            try self.validate(self.parDenominator, name: "parDenominator", parent: name, max: 2_147_483_647)
            try self.validate(self.parDenominator, name: "parDenominator", parent: name, min: 1)
            try self.validate(self.parNumerator, name: "parNumerator", parent: name, max: 2_147_483_647)
            try self.validate(self.parNumerator, name: "parNumerator", parent: name, min: 1)
            try self.qvbrSettings?.validate(name: "\(name).qvbrSettings")
            try self.validate(self.slices, name: "slices", parent: name, max: 32)
            try self.validate(self.slices, name: "slices", parent: name, min: 1)
            try self.validate(self.softness, name: "softness", parent: name, max: 128)
            try self.validate(self.softness, name: "softness", parent: name, min: 0)
        }

        private enum CodingKeys: String, CodingKey {
            case adaptiveQuantization
            case bitrate
            case codecLevel
            case codecProfile
            case dynamicSubGop
            case entropyEncoding
            case fieldEncoding
            case flickerAdaptiveQuantization
            case framerateControl
            case framerateConversionAlgorithm
            case framerateDenominator
            case framerateNumerator
            case gopBReference
            case gopClosedCadence
            case gopSize
            case gopSizeUnits
            case hrdBufferInitialFillPercentage
            case hrdBufferSize
            case interlaceMode
            case maxBitrate
            case minIInterval
            case numberBFramesBetweenReferenceFrames
            case numberReferenceFrames
            case parControl
            case parDenominator
            case parNumerator
            case qualityTuningLevel
            case qvbrSettings
            case rateControlMode
            case repeatPps
            case scanTypeConversionMode
            case sceneChangeDetect
            case slices
            case slowPal
            case softness
            case spatialAdaptiveQuantization
            case syntax
            case telecine
            case temporalAdaptiveQuantization
            case unregisteredSeiTimecode
        }
    }

    public struct H265QvbrSettings: AWSEncodableShape & AWSDecodableShape {
        /// Use this setting only when Rate control mode is QVBR and Quality tuning level is Multi-pass HQ. For Max average bitrate values suited to the complexity of your input video, the service limits the average bitrate of the video part of this output to the value that you choose. That is, the total size of the video element is less than or equal to the value you set multiplied by the number of seconds of encoded output.
        public let maxAverageBitrate: Int?
        /// Required when you use QVBR rate control mode. That is, when you specify qvbrSettings within h265Settings. Specify the general target quality level for this output, from 1 to 10. Use higher numbers for greater quality. Level 10 results in nearly lossless compression. The quality level for most broadcast-quality transcodes is between 6 and 9. Optionally, to specify a value between whole numbers, also provide a value for the setting qvbrQualityLevelFineTune. For example, if you want your QVBR quality level to be 7.33, set qvbrQualityLevel to 7 and set qvbrQualityLevelFineTune to .33.
        public let qvbrQualityLevel: Int?
        /// Optional. Specify a value here to set the QVBR quality to a level that is between whole numbers. For example, if you want your QVBR quality level to be 7.33, set qvbrQualityLevel to 7 and set qvbrQualityLevelFineTune to .33. MediaConvert rounds your QVBR quality level to the nearest third of a whole number. For example, if you set qvbrQualityLevel to 7 and you set qvbrQualityLevelFineTune to .25, your actual QVBR quality level is 7.33.
        public let qvbrQualityLevelFineTune: Double?

        public init(maxAverageBitrate: Int? = nil, qvbrQualityLevel: Int? = nil, qvbrQualityLevelFineTune: Double? = nil) {
            self.maxAverageBitrate = maxAverageBitrate
            self.qvbrQualityLevel = qvbrQualityLevel
            self.qvbrQualityLevelFineTune = qvbrQualityLevelFineTune
        }

        public func validate(name: String) throws {
            try self.validate(self.maxAverageBitrate, name: "maxAverageBitrate", parent: name, max: 1_466_400_000)
            try self.validate(self.maxAverageBitrate, name: "maxAverageBitrate", parent: name, min: 1000)
            try self.validate(self.qvbrQualityLevel, name: "qvbrQualityLevel", parent: name, max: 10)
            try self.validate(self.qvbrQualityLevel, name: "qvbrQualityLevel", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case maxAverageBitrate
            case qvbrQualityLevel
            case qvbrQualityLevelFineTune
        }
    }

    public struct H265Settings: AWSEncodableShape & AWSDecodableShape {
        /// Specify the strength of any adaptive quantization filters that you enable. The value that you choose here applies to the following settings: Flicker adaptive quantization (flickerAdaptiveQuantization), Spatial adaptive quantization (spatialAdaptiveQuantization), and Temporal adaptive quantization (temporalAdaptiveQuantization).
        public let adaptiveQuantization: H265AdaptiveQuantization?
        /// Enables Alternate Transfer Function SEI message for outputs using Hybrid Log Gamma (HLG) Electro-Optical Transfer Function (EOTF).
        public let alternateTransferFunctionSei: H265AlternateTransferFunctionSei?
        /// Specify the average bitrate in bits per second. Required for VBR and CBR. For MS Smooth outputs, bitrates must be unique when rounded down to the nearest multiple of 1000.
        public let bitrate: Int?
        /// H.265 Level.
        public let codecLevel: H265CodecLevel?
        /// Represents the Profile and Tier, per the HEVC (H.265) specification. Selections are grouped as [Profile] / [Tier], so "Main/High" represents Main Profile with High Tier. 4:2:2 profiles are only available with the HEVC 4:2:2 License.
        public let codecProfile: H265CodecProfile?
        /// Choose Adaptive to improve subjective video quality for high-motion content. This will cause the service to use fewer B-frames (which infer information based on other frames) for high-motion portions of the video and more B-frames for low-motion portions. The maximum number of B-frames is limited by the value you provide for the setting B frames between reference frames (numberBFramesBetweenReferenceFrames).
        public let dynamicSubGop: H265DynamicSubGop?
        /// Enable this setting to have the encoder reduce I-frame pop. I-frame pop appears as a visual flicker that can arise when the encoder saves bits by copying some macroblocks many times from frame to frame, and then refreshes them at the I-frame. When you enable this setting, the encoder updates these macroblocks slightly more often to smooth out the flicker. This setting is disabled by default. Related setting: In addition to enabling this setting, you must also set adaptiveQuantization to a value other than Off (OFF).
        public let flickerAdaptiveQuantization: H265FlickerAdaptiveQuantization?
        /// If you are using the console, use the Framerate setting to specify the frame rate for this output. If you want to keep the same frame rate as the input video, choose Follow source. If you want to do frame rate conversion, choose a frame rate from the dropdown list or choose Custom. The framerates shown in the dropdown list are decimal approximations of fractions. If you choose Custom, specify your frame rate as a fraction. If you are creating your transcoding job specification as a JSON file without the console, use FramerateControl to specify which value the service uses for the frame rate for this output. Choose INITIALIZE_FROM_SOURCE if you want the service to use the frame rate from the input. Choose SPECIFIED if you want the service to use the frame rate you specify in the settings FramerateNumerator and FramerateDenominator.
        public let framerateControl: H265FramerateControl?
        /// Choose the method that you want MediaConvert to use when increasing or decreasing the frame rate. We recommend using drop duplicate (DUPLICATE_DROP) for numerically simple conversions, such as 60 fps to 30 fps. For numerically complex conversions, you can use interpolate (INTERPOLATE) to avoid stutter. This results in a smooth picture, but might introduce undesirable video artifacts. For complex frame rate conversions, especially if your source video has already been converted from its original cadence, use FrameFormer (FRAMEFORMER) to do motion-compensated interpolation. FrameFormer chooses the best conversion method frame by frame. Note that using FrameFormer increases the transcoding time and incurs a significant add-on cost.
        public let framerateConversionAlgorithm: H265FramerateConversionAlgorithm?
        /// When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example,  24000 / 1001 = 23.976 fps. Use FramerateDenominator to specify the denominator of this fraction. In this example, use 1001 for the value of FramerateDenominator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
        public let framerateDenominator: Int?
        /// When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example,  24000 / 1001 = 23.976 fps. Use FramerateNumerator to specify the numerator of this fraction. In this example, use 24000 for the value of FramerateNumerator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
        public let framerateNumerator: Int?
        /// If enable, use reference B frames for GOP structures that have B frames > 1.
        public let gopBReference: H265GopBReference?
        /// Frequency of closed GOPs. In streaming applications, it is recommended that this be set to 1 so a decoder joining mid-stream will receive an IDR frame as quickly as possible. Setting this value to 0 will break output segmenting.
        public let gopClosedCadence: Int?
        /// GOP Length (keyframe interval) in frames or seconds. Must be greater than zero.
        public let gopSize: Double?
        /// Indicates if the GOP Size in H265 is specified in frames or seconds. If seconds the system will convert the GOP Size into a frame count at run time.
        public let gopSizeUnits: H265GopSizeUnits?
        /// Percentage of the buffer that should initially be filled (HRD buffer model).
        public let hrdBufferInitialFillPercentage: Int?
        /// Size of buffer (HRD buffer model) in bits. For example, enter five megabits as 5000000.
        public let hrdBufferSize: Int?
        /// Choose the scan line type for the output. Keep the default value, Progressive (PROGRESSIVE) to create a progressive output, regardless of the scan type of your input. Use Top field first (TOP_FIELD) or Bottom field first (BOTTOM_FIELD) to create an output that's interlaced with the same field polarity throughout. Use Follow, default top (FOLLOW_TOP_FIELD) or Follow, default bottom (FOLLOW_BOTTOM_FIELD) to produce outputs with the same field polarity as the source. For jobs that have multiple inputs, the output field polarity might change over the course of the output. Follow behavior depends on the input scan type. If the source is interlaced, the output will be interlaced with the same polarity as the source. If the source is progressive, the output will be interlaced with top field bottom field first, depending on which of the Follow options you choose.
        public let interlaceMode: H265InterlaceMode?
        /// Maximum bitrate in bits/second. For example, enter five megabits per second as 5000000. Required when Rate control mode is QVBR.
        public let maxBitrate: Int?
        /// Enforces separation between repeated (cadence) I-frames and I-frames inserted by Scene Change Detection. If a scene change I-frame is within I-interval frames of a cadence I-frame, the GOP is shrunk and/or stretched to the scene change I-frame. GOP stretch requires enabling lookahead as well as setting I-interval. The normal cadence resumes for the next GOP. This setting is only used when Scene Change Detect is enabled. Note: Maximum GOP stretch = GOP size + Min-I-interval - 1
        public let minIInterval: Int?
        /// Number of B-frames between reference frames.
        public let numberBFramesBetweenReferenceFrames: Int?
        /// Number of reference frames to use. The encoder may use more than requested if using B-frames and/or interlaced encoding.
        public let numberReferenceFrames: Int?
        /// Optional. Specify how the service determines the pixel aspect ratio (PAR) for this output. The default behavior, Follow source (INITIALIZE_FROM_SOURCE), uses the PAR from your input video for your output. To specify a different PAR in the console, choose any value other than Follow source. To specify a different PAR by editing the JSON job specification, choose SPECIFIED. When you choose SPECIFIED for this setting, you must also specify values for the parNumerator and parDenominator settings.
        public let parControl: H265ParControl?
        /// Required when you set Pixel aspect ratio (parControl) to SPECIFIED. On the console, this corresponds to any value other than Follow source. When you specify an output pixel aspect ratio (PAR) that is different from your input video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC widescreen, you would specify the ratio 40:33. In this example, the value for parDenominator is 33.
        public let parDenominator: Int?
        /// Required when you set Pixel aspect ratio (parControl) to SPECIFIED. On the console, this corresponds to any value other than Follow source. When you specify an output pixel aspect ratio (PAR) that is different from your input video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC widescreen, you would specify the ratio 40:33. In this example, the value for parNumerator is 40.
        public let parNumerator: Int?
        /// Optional. Use Quality tuning level (qualityTuningLevel) to choose how you want to trade off encoding speed for output video quality. The default behavior is faster, lower quality, single-pass encoding.
        public let qualityTuningLevel: H265QualityTuningLevel?
        /// Settings for quality-defined variable bitrate encoding with the H.265 codec. Required when you set Rate control mode to QVBR. Not valid when you set Rate control mode to a value other than QVBR, or when you don't define Rate control mode.
        public let qvbrSettings: H265QvbrSettings?
        /// Use this setting to specify whether this output has a variable bitrate (VBR), constant bitrate (CBR) or quality-defined variable bitrate (QVBR).
        public let rateControlMode: H265RateControlMode?
        /// Specify Sample Adaptive Offset (SAO) filter strength.  Adaptive mode dynamically selects best strength based on content
        public let sampleAdaptiveOffsetFilterMode: H265SampleAdaptiveOffsetFilterMode?
        /// Use this setting for interlaced outputs, when your output frame rate is half of your input frame rate. In this situation, choose Optimized interlacing (INTERLACED_OPTIMIZE) to create a better quality interlaced output. In this case, each progressive frame from the input corresponds to an interlaced field in the output. Keep the default value, Basic interlacing (INTERLACED), for all other output frame rates. With basic interlacing, MediaConvert performs any frame rate conversion first and then interlaces the frames. When you choose Optimized interlacing and you set your output frame rate to a value that isn't suitable for optimized interlacing, MediaConvert automatically falls back to basic interlacing. Required settings: To use optimized interlacing, you must set Telecine (telecine) to None (NONE) or Soft (SOFT). You can't use optimized interlacing for hard telecine outputs. You must also set Interlace mode (interlaceMode) to a value other than Progressive (PROGRESSIVE).
        public let scanTypeConversionMode: H265ScanTypeConversionMode?
        /// Enable this setting to insert I-frames at scene changes that the service automatically detects. This improves video quality and is enabled by default. If this output uses QVBR, choose Transition detection (TRANSITION_DETECTION) for further video quality improvement. For more information about QVBR, see https://docs.aws.amazon.com/console/mediaconvert/cbr-vbr-qvbr.
        public let sceneChangeDetect: H265SceneChangeDetect?
        /// Number of slices per picture. Must be less than or equal to the number of macroblock rows for progressive pictures, and less than or equal to half the number of macroblock rows for interlaced pictures.
        public let slices: Int?
        /// Ignore this setting unless your input frame rate is 23.976 or 24 frames per second (fps). Enable slow PAL to create a 25 fps output. When you enable slow PAL, MediaConvert relabels the video frames to 25 fps and resamples your audio to keep it synchronized with the video. Note that enabling this setting will slightly reduce the duration of your video. Required settings: You must also set Framerate to 25. In your JSON job specification, set (framerateControl) to (SPECIFIED), (framerateNumerator) to 25 and (framerateDenominator) to 1.
        public let slowPal: H265SlowPal?
        /// Keep the default value, Enabled (ENABLED), to adjust quantization within each frame based on spatial variation of content complexity. When you enable this feature, the encoder uses fewer bits on areas that can sustain more distortion with no noticeable visual degradation and uses more bits on areas where any small distortion will be noticeable. For example, complex textured blocks are encoded with fewer bits and smooth textured blocks are encoded with more bits. Enabling this feature will almost always improve your video quality. Note, though, that this feature doesn't take into account where the viewer's attention is likely to be. If viewers are likely to be focusing their attention on a part of the screen with a lot of complex texture, you might choose to disable this feature. Related setting: When you enable spatial adaptive quantization, set the value for Adaptive quantization (adaptiveQuantization) depending on your content. For homogeneous content, such as cartoons and video games, set it to Low. For content with a wider variety of textures, set it to High or Higher.
        public let spatialAdaptiveQuantization: H265SpatialAdaptiveQuantization?
        /// This field applies only if the Streams > Advanced > Framerate (framerate) field  is set to 29.970. This field works with the Streams > Advanced > Preprocessors > Deinterlacer  field (deinterlace_mode) and the Streams > Advanced > Interlaced Mode field (interlace_mode)  to identify the scan type for the output: Progressive, Interlaced, Hard Telecine or Soft Telecine. - Hard: produces 29.97i output from 23.976 input. - Soft: produces 23.976; the player converts this output to 29.97i.
        public let telecine: H265Telecine?
        /// Keep the default value, Enabled (ENABLED), to adjust quantization within each frame based on temporal variation of content complexity. When you enable this feature, the encoder uses fewer bits on areas of the frame that aren't moving and uses more bits on complex objects with sharp edges that move a lot. For example, this feature improves the readability of text tickers on newscasts and scoreboards on sports matches. Enabling this feature will almost always improve your video quality. Note, though, that this feature doesn't take into account where the viewer's attention is likely to be. If viewers are likely to be focusing their attention on a part of the screen that doesn't have moving objects with sharp edges, such as sports athletes' faces, you might choose to disable this feature. Related setting: When you enable temporal quantization, adjust the strength of the filter with the setting Adaptive quantization (adaptiveQuantization).
        public let temporalAdaptiveQuantization: H265TemporalAdaptiveQuantization?
        /// Enables temporal layer identifiers in the encoded bitstream. Up to 3 layers are supported depending on GOP structure: I- and P-frames form one layer, reference B-frames can form a second layer and non-reference b-frames can form a third layer. Decoders can optionally decode only the lower temporal layers to generate a lower frame rate output. For example, given a bitstream with temporal IDs and with b-frames = 1 (i.e. IbPbPb display order), a decoder could decode all the frames for full frame rate output or only the I and P frames (lowest temporal layer) for a half frame rate output.
        public let temporalIds: H265TemporalIds?
        /// Enable use of tiles, allowing horizontal as well as vertical subdivision of the encoded pictures.
        public let tiles: H265Tiles?
        /// Inserts timecode for each frame as 4 bytes of an unregistered SEI message.
        public let unregisteredSeiTimecode: H265UnregisteredSeiTimecode?
        /// If the location of parameter set NAL units doesn't matter in your workflow, ignore this setting. Use this setting only with CMAF or DASH outputs, or with standalone file outputs in an MPEG-4 container (MP4 outputs). Choose HVC1 to mark your output as HVC1. This makes your output compliant with the following specification: ISO IECJTC1 SC29 N13798 Text ISO/IEC FDIS 14496-15 3rd Edition. For these outputs, the service stores parameter set NAL units in the sample headers but not in the samples directly. For MP4 outputs, when you choose HVC1, your output video might not work properly with some downstream systems and video players. The service defaults to marking your output as HEV1. For these outputs, the service writes parameter set NAL units directly into the samples.
        public let writeMp4PackagingType: H265WriteMp4PackagingType?

        public init(adaptiveQuantization: H265AdaptiveQuantization? = nil, alternateTransferFunctionSei: H265AlternateTransferFunctionSei? = nil, bitrate: Int? = nil, codecLevel: H265CodecLevel? = nil, codecProfile: H265CodecProfile? = nil, dynamicSubGop: H265DynamicSubGop? = nil, flickerAdaptiveQuantization: H265FlickerAdaptiveQuantization? = nil, framerateControl: H265FramerateControl? = nil, framerateConversionAlgorithm: H265FramerateConversionAlgorithm? = nil, framerateDenominator: Int? = nil, framerateNumerator: Int? = nil, gopBReference: H265GopBReference? = nil, gopClosedCadence: Int? = nil, gopSize: Double? = nil, gopSizeUnits: H265GopSizeUnits? = nil, hrdBufferInitialFillPercentage: Int? = nil, hrdBufferSize: Int? = nil, interlaceMode: H265InterlaceMode? = nil, maxBitrate: Int? = nil, minIInterval: Int? = nil, numberBFramesBetweenReferenceFrames: Int? = nil, numberReferenceFrames: Int? = nil, parControl: H265ParControl? = nil, parDenominator: Int? = nil, parNumerator: Int? = nil, qualityTuningLevel: H265QualityTuningLevel? = nil, qvbrSettings: H265QvbrSettings? = nil, rateControlMode: H265RateControlMode? = nil, sampleAdaptiveOffsetFilterMode: H265SampleAdaptiveOffsetFilterMode? = nil, scanTypeConversionMode: H265ScanTypeConversionMode? = nil, sceneChangeDetect: H265SceneChangeDetect? = nil, slices: Int? = nil, slowPal: H265SlowPal? = nil, spatialAdaptiveQuantization: H265SpatialAdaptiveQuantization? = nil, telecine: H265Telecine? = nil, temporalAdaptiveQuantization: H265TemporalAdaptiveQuantization? = nil, temporalIds: H265TemporalIds? = nil, tiles: H265Tiles? = nil, unregisteredSeiTimecode: H265UnregisteredSeiTimecode? = nil, writeMp4PackagingType: H265WriteMp4PackagingType? = nil) {
            self.adaptiveQuantization = adaptiveQuantization
            self.alternateTransferFunctionSei = alternateTransferFunctionSei
            self.bitrate = bitrate
            self.codecLevel = codecLevel
            self.codecProfile = codecProfile
            self.dynamicSubGop = dynamicSubGop
            self.flickerAdaptiveQuantization = flickerAdaptiveQuantization
            self.framerateControl = framerateControl
            self.framerateConversionAlgorithm = framerateConversionAlgorithm
            self.framerateDenominator = framerateDenominator
            self.framerateNumerator = framerateNumerator
            self.gopBReference = gopBReference
            self.gopClosedCadence = gopClosedCadence
            self.gopSize = gopSize
            self.gopSizeUnits = gopSizeUnits
            self.hrdBufferInitialFillPercentage = hrdBufferInitialFillPercentage
            self.hrdBufferSize = hrdBufferSize
            self.interlaceMode = interlaceMode
            self.maxBitrate = maxBitrate
            self.minIInterval = minIInterval
            self.numberBFramesBetweenReferenceFrames = numberBFramesBetweenReferenceFrames
            self.numberReferenceFrames = numberReferenceFrames
            self.parControl = parControl
            self.parDenominator = parDenominator
            self.parNumerator = parNumerator
            self.qualityTuningLevel = qualityTuningLevel
            self.qvbrSettings = qvbrSettings
            self.rateControlMode = rateControlMode
            self.sampleAdaptiveOffsetFilterMode = sampleAdaptiveOffsetFilterMode
            self.scanTypeConversionMode = scanTypeConversionMode
            self.sceneChangeDetect = sceneChangeDetect
            self.slices = slices
            self.slowPal = slowPal
            self.spatialAdaptiveQuantization = spatialAdaptiveQuantization
            self.telecine = telecine
            self.temporalAdaptiveQuantization = temporalAdaptiveQuantization
            self.temporalIds = temporalIds
            self.tiles = tiles
            self.unregisteredSeiTimecode = unregisteredSeiTimecode
            self.writeMp4PackagingType = writeMp4PackagingType
        }

        public func validate(name: String) throws {
            try self.validate(self.bitrate, name: "bitrate", parent: name, max: 1_466_400_000)
            try self.validate(self.bitrate, name: "bitrate", parent: name, min: 1000)
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, max: 2_147_483_647)
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, min: 1)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, max: 2_147_483_647)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, min: 1)
            try self.validate(self.gopClosedCadence, name: "gopClosedCadence", parent: name, max: 2_147_483_647)
            try self.validate(self.gopClosedCadence, name: "gopClosedCadence", parent: name, min: 0)
            try self.validate(self.hrdBufferInitialFillPercentage, name: "hrdBufferInitialFillPercentage", parent: name, max: 100)
            try self.validate(self.hrdBufferInitialFillPercentage, name: "hrdBufferInitialFillPercentage", parent: name, min: 0)
            try self.validate(self.hrdBufferSize, name: "hrdBufferSize", parent: name, max: 1_466_400_000)
            try self.validate(self.hrdBufferSize, name: "hrdBufferSize", parent: name, min: 0)
            try self.validate(self.maxBitrate, name: "maxBitrate", parent: name, max: 1_466_400_000)
            try self.validate(self.maxBitrate, name: "maxBitrate", parent: name, min: 1000)
            try self.validate(self.minIInterval, name: "minIInterval", parent: name, max: 30)
            try self.validate(self.minIInterval, name: "minIInterval", parent: name, min: 0)
            try self.validate(self.numberBFramesBetweenReferenceFrames, name: "numberBFramesBetweenReferenceFrames", parent: name, max: 7)
            try self.validate(self.numberBFramesBetweenReferenceFrames, name: "numberBFramesBetweenReferenceFrames", parent: name, min: 0)
            try self.validate(self.numberReferenceFrames, name: "numberReferenceFrames", parent: name, max: 6)
            try self.validate(self.numberReferenceFrames, name: "numberReferenceFrames", parent: name, min: 1)
            try self.validate(self.parDenominator, name: "parDenominator", parent: name, max: 2_147_483_647)
            try self.validate(self.parDenominator, name: "parDenominator", parent: name, min: 1)
            try self.validate(self.parNumerator, name: "parNumerator", parent: name, max: 2_147_483_647)
            try self.validate(self.parNumerator, name: "parNumerator", parent: name, min: 1)
            try self.qvbrSettings?.validate(name: "\(name).qvbrSettings")
            try self.validate(self.slices, name: "slices", parent: name, max: 32)
            try self.validate(self.slices, name: "slices", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case adaptiveQuantization
            case alternateTransferFunctionSei
            case bitrate
            case codecLevel
            case codecProfile
            case dynamicSubGop
            case flickerAdaptiveQuantization
            case framerateControl
            case framerateConversionAlgorithm
            case framerateDenominator
            case framerateNumerator
            case gopBReference
            case gopClosedCadence
            case gopSize
            case gopSizeUnits
            case hrdBufferInitialFillPercentage
            case hrdBufferSize
            case interlaceMode
            case maxBitrate
            case minIInterval
            case numberBFramesBetweenReferenceFrames
            case numberReferenceFrames
            case parControl
            case parDenominator
            case parNumerator
            case qualityTuningLevel
            case qvbrSettings
            case rateControlMode
            case sampleAdaptiveOffsetFilterMode
            case scanTypeConversionMode
            case sceneChangeDetect
            case slices
            case slowPal
            case spatialAdaptiveQuantization
            case telecine
            case temporalAdaptiveQuantization
            case temporalIds
            case tiles
            case unregisteredSeiTimecode
            case writeMp4PackagingType
        }
    }

    public struct Hdr10Metadata: AWSEncodableShape & AWSDecodableShape {
        /// HDR Master Display Information must be provided by a color grader, using color grading tools. Range is 0 to 50,000, each increment represents 0.00002 in CIE1931 color coordinate. Note that this setting is not for color correction.
        public let bluePrimaryX: Int?
        /// HDR Master Display Information must be provided by a color grader, using color grading tools. Range is 0 to 50,000, each increment represents 0.00002 in CIE1931 color coordinate. Note that this setting is not for color correction.
        public let bluePrimaryY: Int?
        /// HDR Master Display Information must be provided by a color grader, using color grading tools. Range is 0 to 50,000, each increment represents 0.00002 in CIE1931 color coordinate. Note that this setting is not for color correction.
        public let greenPrimaryX: Int?
        /// HDR Master Display Information must be provided by a color grader, using color grading tools. Range is 0 to 50,000, each increment represents 0.00002 in CIE1931 color coordinate. Note that this setting is not for color correction.
        public let greenPrimaryY: Int?
        /// Maximum light level among all samples in the coded video sequence, in units of candelas per square meter.  This setting doesn't have a default value; you must specify a value that is suitable for the content.
        public let maxContentLightLevel: Int?
        /// Maximum average light level of any frame in the coded video sequence, in units of candelas per square meter. This setting doesn't have a default value; you must specify a value that is suitable for the content.
        public let maxFrameAverageLightLevel: Int?
        /// Nominal maximum mastering display luminance in units of of 0.0001 candelas per square meter.
        public let maxLuminance: Int?
        /// Nominal minimum mastering display luminance in units of of 0.0001 candelas per square meter
        public let minLuminance: Int?
        /// HDR Master Display Information must be provided by a color grader, using color grading tools. Range is 0 to 50,000, each increment represents 0.00002 in CIE1931 color coordinate. Note that this setting is not for color correction.
        public let redPrimaryX: Int?
        /// HDR Master Display Information must be provided by a color grader, using color grading tools. Range is 0 to 50,000, each increment represents 0.00002 in CIE1931 color coordinate. Note that this setting is not for color correction.
        public let redPrimaryY: Int?
        /// HDR Master Display Information must be provided by a color grader, using color grading tools. Range is 0 to 50,000, each increment represents 0.00002 in CIE1931 color coordinate. Note that this setting is not for color correction.
        public let whitePointX: Int?
        /// HDR Master Display Information must be provided by a color grader, using color grading tools. Range is 0 to 50,000, each increment represents 0.00002 in CIE1931 color coordinate. Note that this setting is not for color correction.
        public let whitePointY: Int?

        public init(bluePrimaryX: Int? = nil, bluePrimaryY: Int? = nil, greenPrimaryX: Int? = nil, greenPrimaryY: Int? = nil, maxContentLightLevel: Int? = nil, maxFrameAverageLightLevel: Int? = nil, maxLuminance: Int? = nil, minLuminance: Int? = nil, redPrimaryX: Int? = nil, redPrimaryY: Int? = nil, whitePointX: Int? = nil, whitePointY: Int? = nil) {
            self.bluePrimaryX = bluePrimaryX
            self.bluePrimaryY = bluePrimaryY
            self.greenPrimaryX = greenPrimaryX
            self.greenPrimaryY = greenPrimaryY
            self.maxContentLightLevel = maxContentLightLevel
            self.maxFrameAverageLightLevel = maxFrameAverageLightLevel
            self.maxLuminance = maxLuminance
            self.minLuminance = minLuminance
            self.redPrimaryX = redPrimaryX
            self.redPrimaryY = redPrimaryY
            self.whitePointX = whitePointX
            self.whitePointY = whitePointY
        }

        public func validate(name: String) throws {
            try self.validate(self.bluePrimaryX, name: "bluePrimaryX", parent: name, max: 50000)
            try self.validate(self.bluePrimaryX, name: "bluePrimaryX", parent: name, min: 0)
            try self.validate(self.bluePrimaryY, name: "bluePrimaryY", parent: name, max: 50000)
            try self.validate(self.bluePrimaryY, name: "bluePrimaryY", parent: name, min: 0)
            try self.validate(self.greenPrimaryX, name: "greenPrimaryX", parent: name, max: 50000)
            try self.validate(self.greenPrimaryX, name: "greenPrimaryX", parent: name, min: 0)
            try self.validate(self.greenPrimaryY, name: "greenPrimaryY", parent: name, max: 50000)
            try self.validate(self.greenPrimaryY, name: "greenPrimaryY", parent: name, min: 0)
            try self.validate(self.maxContentLightLevel, name: "maxContentLightLevel", parent: name, max: 65535)
            try self.validate(self.maxContentLightLevel, name: "maxContentLightLevel", parent: name, min: 0)
            try self.validate(self.maxFrameAverageLightLevel, name: "maxFrameAverageLightLevel", parent: name, max: 65535)
            try self.validate(self.maxFrameAverageLightLevel, name: "maxFrameAverageLightLevel", parent: name, min: 0)
            try self.validate(self.maxLuminance, name: "maxLuminance", parent: name, max: 2_147_483_647)
            try self.validate(self.maxLuminance, name: "maxLuminance", parent: name, min: 0)
            try self.validate(self.minLuminance, name: "minLuminance", parent: name, max: 2_147_483_647)
            try self.validate(self.minLuminance, name: "minLuminance", parent: name, min: 0)
            try self.validate(self.redPrimaryX, name: "redPrimaryX", parent: name, max: 50000)
            try self.validate(self.redPrimaryX, name: "redPrimaryX", parent: name, min: 0)
            try self.validate(self.redPrimaryY, name: "redPrimaryY", parent: name, max: 50000)
            try self.validate(self.redPrimaryY, name: "redPrimaryY", parent: name, min: 0)
            try self.validate(self.whitePointX, name: "whitePointX", parent: name, max: 50000)
            try self.validate(self.whitePointX, name: "whitePointX", parent: name, min: 0)
            try self.validate(self.whitePointY, name: "whitePointY", parent: name, max: 50000)
            try self.validate(self.whitePointY, name: "whitePointY", parent: name, min: 0)
        }

        private enum CodingKeys: String, CodingKey {
            case bluePrimaryX
            case bluePrimaryY
            case greenPrimaryX
            case greenPrimaryY
            case maxContentLightLevel
            case maxFrameAverageLightLevel
            case maxLuminance
            case minLuminance
            case redPrimaryX
            case redPrimaryY
            case whitePointX
            case whitePointY
        }
    }

    public struct HlsAdditionalManifest: AWSEncodableShape & AWSDecodableShape {
        /// Specify a name modifier that the service adds to the name of this manifest to make it different from the file names of the other main manifests in the output group. For example, say that the default main manifest for your HLS group is film-name.m3u8. If you enter "-no-premium" for this setting, then the file name the service generates for this top-level manifest is film-name-no-premium.m3u8. For HLS output groups, specify a manifestNameModifier that is different from the nameModifier of the output. The service uses the output name modifier to create unique names for the individual variant manifests.
        public let manifestNameModifier: String?
        /// Specify the outputs that you want this additional top-level manifest to reference.
        public let selectedOutputs: [String]?

        public init(manifestNameModifier: String? = nil, selectedOutputs: [String]? = nil) {
            self.manifestNameModifier = manifestNameModifier
            self.selectedOutputs = selectedOutputs
        }

        public func validate(name: String) throws {
            try self.validate(self.manifestNameModifier, name: "manifestNameModifier", parent: name, min: 1)
            try self.selectedOutputs?.forEach {
                try validate($0, name: "selectedOutputs[]", parent: name, min: 1)
            }
        }

        private enum CodingKeys: String, CodingKey {
            case manifestNameModifier
            case selectedOutputs
        }
    }

    public struct HlsCaptionLanguageMapping: AWSEncodableShape & AWSDecodableShape {
        /// Caption channel.
        public let captionChannel: Int?
        /// Specify the language for this captions channel, using the ISO 639-2 or ISO 639-3 three-letter language code
        public let customLanguageCode: String?
        /// Specify the language, using the ISO 639-2 three-letter code listed at https://www.loc.gov/standards/iso639-2/php/code_list.php.
        public let languageCode: LanguageCode?
        /// Caption language description.
        public let languageDescription: String?

        public init(captionChannel: Int? = nil, customLanguageCode: String? = nil, languageCode: LanguageCode? = nil, languageDescription: String? = nil) {
            self.captionChannel = captionChannel
            self.customLanguageCode = customLanguageCode
            self.languageCode = languageCode
            self.languageDescription = languageDescription
        }

        public func validate(name: String) throws {
            try self.validate(self.captionChannel, name: "captionChannel", parent: name, max: 2_147_483_647)
            try self.validate(self.captionChannel, name: "captionChannel", parent: name, min: -2_147_483_648)
            try self.validate(self.customLanguageCode, name: "customLanguageCode", parent: name, max: 3)
            try self.validate(self.customLanguageCode, name: "customLanguageCode", parent: name, min: 3)
            try self.validate(self.customLanguageCode, name: "customLanguageCode", parent: name, pattern: "^[A-Za-z]{3}$")
        }

        private enum CodingKeys: String, CodingKey {
            case captionChannel
            case customLanguageCode
            case languageCode
            case languageDescription
        }
    }

    public struct HlsEncryptionSettings: AWSEncodableShape & AWSDecodableShape {
        /// This is a 128-bit, 16-byte hex value represented by a 32-character text string. If this parameter is not set then the Initialization Vector will follow the segment number by default.
        public let constantInitializationVector: String?
        /// Encrypts the segments with the given encryption scheme. Leave blank to disable. Selecting 'Disabled' in the web interface also disables encryption.
        public let encryptionMethod: HlsEncryptionType?
        /// The Initialization Vector is a 128-bit number used in conjunction with the key for encrypting blocks. If set to INCLUDE, Initialization Vector is listed in the manifest. Otherwise Initialization Vector is not in the manifest.
        public let initializationVectorInManifest: HlsInitializationVectorInManifest?
        /// Enable this setting to insert the EXT-X-SESSION-KEY element into the master playlist. This allows for offline Apple HLS FairPlay content protection.
        public let offlineEncrypted: HlsOfflineEncrypted?
        /// If your output group type is HLS, DASH, or Microsoft Smooth, use these settings when doing DRM encryption with a SPEKE-compliant key provider.  If your output group type is CMAF, use the SpekeKeyProviderCmaf settings instead.
        public let spekeKeyProvider: SpekeKeyProvider?
        /// Use these settings to set up encryption with a static key provider.
        public let staticKeyProvider: StaticKeyProvider?
        /// Specify whether your DRM encryption key is static or from a key provider that follows the SPEKE standard. For more information about SPEKE, see https://docs.aws.amazon.com/speke/latest/documentation/what-is-speke.html.
        public let type: HlsKeyProviderType?

        public init(constantInitializationVector: String? = nil, encryptionMethod: HlsEncryptionType? = nil, initializationVectorInManifest: HlsInitializationVectorInManifest? = nil, offlineEncrypted: HlsOfflineEncrypted? = nil, spekeKeyProvider: SpekeKeyProvider? = nil, staticKeyProvider: StaticKeyProvider? = nil, type: HlsKeyProviderType? = nil) {
            self.constantInitializationVector = constantInitializationVector
            self.encryptionMethod = encryptionMethod
            self.initializationVectorInManifest = initializationVectorInManifest
            self.offlineEncrypted = offlineEncrypted
            self.spekeKeyProvider = spekeKeyProvider
            self.staticKeyProvider = staticKeyProvider
            self.type = type
        }

        public func validate(name: String) throws {
            try self.validate(self.constantInitializationVector, name: "constantInitializationVector", parent: name, max: 32)
            try self.validate(self.constantInitializationVector, name: "constantInitializationVector", parent: name, min: 32)
            try self.validate(self.constantInitializationVector, name: "constantInitializationVector", parent: name, pattern: "^[0-9a-fA-F]{32}$")
            try self.spekeKeyProvider?.validate(name: "\(name).spekeKeyProvider")
            try self.staticKeyProvider?.validate(name: "\(name).staticKeyProvider")
        }

        private enum CodingKeys: String, CodingKey {
            case constantInitializationVector
            case encryptionMethod
            case initializationVectorInManifest
            case offlineEncrypted
            case spekeKeyProvider
            case staticKeyProvider
            case type
        }
    }

    public struct HlsGroupSettings: AWSEncodableShape & AWSDecodableShape {
        /// By default, the service creates one top-level .m3u8 HLS manifest for each HLS output group in your job. This default manifest references every output in the output group. To create additional top-level manifests that reference a subset of the outputs in the output group, specify a list of them here.
        public let additionalManifests: [HlsAdditionalManifest]?
        /// Choose one or more ad marker types to decorate your Apple HLS manifest. This setting does not determine whether SCTE-35 markers appear in the outputs themselves.
        public let adMarkers: [HlsAdMarkers]?
        /// Ignore this setting unless you are using FairPlay DRM with Verimatrix and you encounter playback issues. Keep the default value, Include (INCLUDE), to output audio-only headers. Choose Exclude (EXCLUDE) to remove the audio-only headers from your audio segments.
        public let audioOnlyHeader: HlsAudioOnlyHeader?
        /// A partial URI prefix that will be prepended to each output in the media .m3u8 file. Can be used if base manifest is delivered from a different URL than the main .m3u8 file.
        public let baseUrl: String?
        /// Language to be used on Caption outputs
        public let captionLanguageMappings: [HlsCaptionLanguageMapping]?
        /// Applies only to 608 Embedded output captions. Insert: Include CLOSED-CAPTIONS lines in the manifest. Specify at least one language in the CC1 Language Code field. One CLOSED-CAPTION line is added for each Language Code you specify. Make sure to specify the languages in the order in which they appear in the original source (if the source is embedded format) or the order of the caption selectors (if the source is other than embedded). Otherwise, languages in the manifest will not match up properly with the output captions. None: Include CLOSED-CAPTIONS=NONE line in the manifest. Omit: Omit any CLOSED-CAPTIONS line from the manifest.
        public let captionLanguageSetting: HlsCaptionLanguageSetting?
        /// Disable this setting only when your workflow requires the #EXT-X-ALLOW-CACHE:no tag. Otherwise, keep the default value Enabled (ENABLED) and control caching in your video distribution set up. For example, use the Cache-Control http header.
        public let clientCache: HlsClientCache?
        /// Specification to use (RFC-6381 or the default RFC-4281) during m3u8 playlist generation.
        public let codecSpecification: HlsCodecSpecification?
        /// Use Destination (Destination) to specify the S3 output location and the output filename base. Destination accepts format identifiers. If you do not specify the base filename in the URI, the service will use the filename of the input file. If your job has multiple inputs, the service uses the filename of the first input file.
        public let destination: String?
        /// Settings associated with the destination. Will vary based on the type of destination
        public let destinationSettings: DestinationSettings?
        /// Indicates whether segments should be placed in subdirectories.
        public let directoryStructure: HlsDirectoryStructure?
        /// DRM settings.
        public let encryption: HlsEncryptionSettings?
        /// When set to GZIP, compresses HLS playlist.
        public let manifestCompression: HlsManifestCompression?
        /// Indicates whether the output manifest should use floating point values for segment duration.
        public let manifestDurationFormat: HlsManifestDurationFormat?
        /// Keep this setting at the default value of 0, unless you are troubleshooting a problem with how devices play back the end of your video asset. If you know that player devices are hanging on the final segment of your video because the length of your final segment is too short, use this setting to specify a minimum final segment length, in seconds. Choose a value that is greater than or equal to 1 and less than your segment length. When you specify a value for this setting, the encoder will combine any final segment that is shorter than the length that you specify with the previous segment. For example, your segment length is 3 seconds and your final segment is .5 seconds without a minimum final segment length; when you set the minimum final segment length to 1, your final segment is 3.5 seconds.
        public let minFinalSegmentLength: Double?
        /// When set, Minimum Segment Size is enforced by looking ahead and back within the specified range for a nearby avail and extending the segment size if needed.
        public let minSegmentLength: Int?
        /// Indicates whether the .m3u8 manifest file should be generated for this HLS output group.
        public let outputSelection: HlsOutputSelection?
        /// Includes or excludes EXT-X-PROGRAM-DATE-TIME tag in .m3u8 manifest files. The value is calculated as follows: either the program date and time are initialized using the input timecode source, or the time is initialized using the input timecode source and the date is initialized using the timestamp_offset.
        public let programDateTime: HlsProgramDateTime?
        /// Period of insertion of EXT-X-PROGRAM-DATE-TIME entry, in seconds.
        public let programDateTimePeriod: Int?
        /// When set to SINGLE_FILE, emits program as a single media resource (.ts) file, uses #EXT-X-BYTERANGE tags to index segment for playback.
        public let segmentControl: HlsSegmentControl?
        /// Length of MPEG-2 Transport Stream segments to create (in seconds). Note that segments will end on the next keyframe after this number of seconds, so actual segment length may be longer.
        public let segmentLength: Int?
        /// Number of segments to write to a subdirectory before starting a new one. directoryStructure must be SINGLE_DIRECTORY for this setting to have an effect.
        public let segmentsPerSubdirectory: Int?
        /// Include or exclude RESOLUTION attribute for video in EXT-X-STREAM-INF tag of variant manifest.
        public let streamInfResolution: HlsStreamInfResolution?
        /// Indicates ID3 frame that has the timecode.
        public let timedMetadataId3Frame: HlsTimedMetadataId3Frame?
        /// Timed Metadata interval in seconds.
        public let timedMetadataId3Period: Int?
        /// Provides an extra millisecond delta offset to fine tune the timestamps.
        public let timestampDeltaMilliseconds: Int?

        public init(additionalManifests: [HlsAdditionalManifest]? = nil, adMarkers: [HlsAdMarkers]? = nil, audioOnlyHeader: HlsAudioOnlyHeader? = nil, baseUrl: String? = nil, captionLanguageMappings: [HlsCaptionLanguageMapping]? = nil, captionLanguageSetting: HlsCaptionLanguageSetting? = nil, clientCache: HlsClientCache? = nil, codecSpecification: HlsCodecSpecification? = nil, destination: String? = nil, destinationSettings: DestinationSettings? = nil, directoryStructure: HlsDirectoryStructure? = nil, encryption: HlsEncryptionSettings? = nil, manifestCompression: HlsManifestCompression? = nil, manifestDurationFormat: HlsManifestDurationFormat? = nil, minFinalSegmentLength: Double? = nil, minSegmentLength: Int? = nil, outputSelection: HlsOutputSelection? = nil, programDateTime: HlsProgramDateTime? = nil, programDateTimePeriod: Int? = nil, segmentControl: HlsSegmentControl? = nil, segmentLength: Int? = nil, segmentsPerSubdirectory: Int? = nil, streamInfResolution: HlsStreamInfResolution? = nil, timedMetadataId3Frame: HlsTimedMetadataId3Frame? = nil, timedMetadataId3Period: Int? = nil, timestampDeltaMilliseconds: Int? = nil) {
            self.additionalManifests = additionalManifests
            self.adMarkers = adMarkers
            self.audioOnlyHeader = audioOnlyHeader
            self.baseUrl = baseUrl
            self.captionLanguageMappings = captionLanguageMappings
            self.captionLanguageSetting = captionLanguageSetting
            self.clientCache = clientCache
            self.codecSpecification = codecSpecification
            self.destination = destination
            self.destinationSettings = destinationSettings
            self.directoryStructure = directoryStructure
            self.encryption = encryption
            self.manifestCompression = manifestCompression
            self.manifestDurationFormat = manifestDurationFormat
            self.minFinalSegmentLength = minFinalSegmentLength
            self.minSegmentLength = minSegmentLength
            self.outputSelection = outputSelection
            self.programDateTime = programDateTime
            self.programDateTimePeriod = programDateTimePeriod
            self.segmentControl = segmentControl
            self.segmentLength = segmentLength
            self.segmentsPerSubdirectory = segmentsPerSubdirectory
            self.streamInfResolution = streamInfResolution
            self.timedMetadataId3Frame = timedMetadataId3Frame
            self.timedMetadataId3Period = timedMetadataId3Period
            self.timestampDeltaMilliseconds = timestampDeltaMilliseconds
        }

        public func validate(name: String) throws {
            try self.additionalManifests?.forEach {
                try $0.validate(name: "\(name).additionalManifests[]")
            }
            try self.captionLanguageMappings?.forEach {
                try $0.validate(name: "\(name).captionLanguageMappings[]")
            }
            try self.validate(self.destination, name: "destination", parent: name, pattern: "^s3:\\/\\/")
            try self.destinationSettings?.validate(name: "\(name).destinationSettings")
            try self.encryption?.validate(name: "\(name).encryption")
            try self.validate(self.minSegmentLength, name: "minSegmentLength", parent: name, max: 2_147_483_647)
            try self.validate(self.minSegmentLength, name: "minSegmentLength", parent: name, min: 0)
            try self.validate(self.programDateTimePeriod, name: "programDateTimePeriod", parent: name, max: 3600)
            try self.validate(self.programDateTimePeriod, name: "programDateTimePeriod", parent: name, min: 0)
            try self.validate(self.segmentLength, name: "segmentLength", parent: name, max: 2_147_483_647)
            try self.validate(self.segmentLength, name: "segmentLength", parent: name, min: 1)
            try self.validate(self.segmentsPerSubdirectory, name: "segmentsPerSubdirectory", parent: name, max: 2_147_483_647)
            try self.validate(self.segmentsPerSubdirectory, name: "segmentsPerSubdirectory", parent: name, min: 1)
            try self.validate(self.timedMetadataId3Period, name: "timedMetadataId3Period", parent: name, max: 2_147_483_647)
            try self.validate(self.timedMetadataId3Period, name: "timedMetadataId3Period", parent: name, min: -2_147_483_648)
            try self.validate(self.timestampDeltaMilliseconds, name: "timestampDeltaMilliseconds", parent: name, max: 2_147_483_647)
            try self.validate(self.timestampDeltaMilliseconds, name: "timestampDeltaMilliseconds", parent: name, min: -2_147_483_648)
        }

        private enum CodingKeys: String, CodingKey {
            case additionalManifests
            case adMarkers
            case audioOnlyHeader
            case baseUrl
            case captionLanguageMappings
            case captionLanguageSetting
            case clientCache
            case codecSpecification
            case destination
            case destinationSettings
            case directoryStructure
            case encryption
            case manifestCompression
            case manifestDurationFormat
            case minFinalSegmentLength
            case minSegmentLength
            case outputSelection
            case programDateTime
            case programDateTimePeriod
            case segmentControl
            case segmentLength
            case segmentsPerSubdirectory
            case streamInfResolution
            case timedMetadataId3Frame
            case timedMetadataId3Period
            case timestampDeltaMilliseconds
        }
    }

    public struct HlsSettings: AWSEncodableShape & AWSDecodableShape {
        /// Specifies the group to which the audio Rendition belongs.
        public let audioGroupId: String?
        /// Use this setting only in audio-only outputs. Choose MPEG-2 Transport Stream (M2TS) to create a file in an MPEG2-TS container. Keep the default value Automatic (AUTOMATIC) to create an audio-only file in a raw container. Regardless of the value that you specify here, if this output has video, the service will place the output into an MPEG2-TS container.
        public let audioOnlyContainer: HlsAudioOnlyContainer?
        /// List all the audio groups that are used with the video output stream. Input all the audio GROUP-IDs that are associated to the video, separate by ','.
        public let audioRenditionSets: String?
        /// Four types of audio-only tracks are supported: Audio-Only Variant Stream The client can play back this audio-only stream instead of video in low-bandwidth scenarios. Represented as an EXT-X-STREAM-INF in the HLS manifest. Alternate Audio, Auto Select, Default Alternate rendition that the client should try to play back by default. Represented as an EXT-X-MEDIA in the HLS manifest with DEFAULT=YES, AUTOSELECT=YES Alternate Audio, Auto Select, Not Default Alternate rendition that the client may try to play back by default. Represented as an EXT-X-MEDIA in the HLS manifest with DEFAULT=NO, AUTOSELECT=YES Alternate Audio, not Auto Select Alternate rendition that the client will not try to play back by default. Represented as an EXT-X-MEDIA in the HLS manifest with DEFAULT=NO, AUTOSELECT=NO
        public let audioTrackType: HlsAudioTrackType?
        /// Choose Include (INCLUDE) to have MediaConvert generate a child manifest that lists only the I-frames for this rendition, in addition to your regular manifest for this rendition. You might use this manifest as part of a workflow that creates preview functions for your video. MediaConvert adds both the I-frame only child manifest and the regular child manifest to the parent manifest. When you don't need the I-frame only child manifest, keep the default value Exclude (EXCLUDE).
        public let iFrameOnlyManifest: HlsIFrameOnlyManifest?
        /// Use this setting to add an identifying string to the filename of each segment. The service adds this string between the name modifier and segment index number. You can use format identifiers in the string. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/using-variables-in-your-job-settings.html
        public let segmentModifier: String?

        public init(audioGroupId: String? = nil, audioOnlyContainer: HlsAudioOnlyContainer? = nil, audioRenditionSets: String? = nil, audioTrackType: HlsAudioTrackType? = nil, iFrameOnlyManifest: HlsIFrameOnlyManifest? = nil, segmentModifier: String? = nil) {
            self.audioGroupId = audioGroupId
            self.audioOnlyContainer = audioOnlyContainer
            self.audioRenditionSets = audioRenditionSets
            self.audioTrackType = audioTrackType
            self.iFrameOnlyManifest = iFrameOnlyManifest
            self.segmentModifier = segmentModifier
        }

        private enum CodingKeys: String, CodingKey {
            case audioGroupId
            case audioOnlyContainer
            case audioRenditionSets
            case audioTrackType
            case iFrameOnlyManifest
            case segmentModifier
        }
    }

    public struct HopDestination: AWSEncodableShape & AWSDecodableShape {
        /// Optional. When you set up a job to use queue hopping, you can specify a different relative priority for the job in the destination queue. If you don't specify, the relative priority will remain the same as in the previous queue.
        public let priority: Int?
        /// Optional unless the job is submitted on the default queue. When you set up a job to use queue hopping, you can specify a destination queue. This queue cannot be the original queue to which the job is submitted. If the original queue isn't the default queue and you don't specify the destination queue, the job will move to the default queue.
        public let queue: String?
        /// Required for setting up a job to use queue hopping. Minimum wait time in minutes until the job can hop to the destination queue. Valid range is 1 to 1440 minutes, inclusive.
        public let waitMinutes: Int?

        public init(priority: Int? = nil, queue: String? = nil, waitMinutes: Int? = nil) {
            self.priority = priority
            self.queue = queue
            self.waitMinutes = waitMinutes
        }

        public func validate(name: String) throws {
            try self.validate(self.priority, name: "priority", parent: name, max: 50)
            try self.validate(self.priority, name: "priority", parent: name, min: -50)
        }

        private enum CodingKeys: String, CodingKey {
            case priority
            case queue
            case waitMinutes
        }
    }

    public struct Id3Insertion: AWSEncodableShape & AWSDecodableShape {
        /// Use ID3 tag (Id3) to provide a tag value in base64-encode format.
        public let id3: String?
        /// Provide a Timecode (TimeCode) in HH:MM:SS:FF or HH:MM:SS;FF format.
        public let timecode: String?

        public init(id3: String? = nil, timecode: String? = nil) {
            self.id3 = id3
            self.timecode = timecode
        }

        public func validate(name: String) throws {
            try self.validate(self.id3, name: "id3", parent: name, pattern: "^[A-Za-z0-9+\\/]+={0,2}$")
            try self.validate(self.timecode, name: "timecode", parent: name, pattern: "^([01][0-9]|2[0-4]):[0-5][0-9]:[0-5][0-9][:;][0-9]{2}$")
        }

        private enum CodingKeys: String, CodingKey {
            case id3
            case timecode
        }
    }

    public struct ImageInserter: AWSEncodableShape & AWSDecodableShape {
        /// Specify the images that you want to overlay on your video. The images must be PNG or TGA files.
        public let insertableImages: [InsertableImage]?

        public init(insertableImages: [InsertableImage]? = nil) {
            self.insertableImages = insertableImages
        }

        public func validate(name: String) throws {
            try self.insertableImages?.forEach {
                try $0.validate(name: "\(name).insertableImages[]")
            }
        }

        private enum CodingKeys: String, CodingKey {
            case insertableImages
        }
    }

    public struct ImscDestinationSettings: AWSEncodableShape & AWSDecodableShape {
        /// Keep this setting enabled to have MediaConvert use the font style and position information from the captions source in the output. This option is available only when your input captions are IMSC, SMPTE-TT, or TTML. Disable this setting for simplified output captions.
        public let stylePassthrough: ImscStylePassthrough?

        public init(stylePassthrough: ImscStylePassthrough? = nil) {
            self.stylePassthrough = stylePassthrough
        }

        private enum CodingKeys: String, CodingKey {
            case stylePassthrough
        }
    }

    public struct Input: AWSEncodableShape & AWSDecodableShape {
        /// Specifies set of audio selectors within an input to combine. An input may have multiple audio selector groups. See "Audio Selector Group":#inputs-audio_selector_group for more information.
        public let audioSelectorGroups: [String: AudioSelectorGroup]?
        /// Use Audio selectors (AudioSelectors) to specify a track or set of tracks from the input that you will use in your outputs. You can use multiple Audio selectors per input.
        public let audioSelectors: [String: AudioSelector]?
        /// Use captions selectors to specify the captions data from your input that you use in your outputs. You can use up to 20 captions selectors per input.
        public let captionSelectors: [String: CaptionSelector]?
        /// Use Cropping selection (crop) to specify the video area that the service will include in the output video frame. If you specify a value here, it will override any value that you specify in the output setting Cropping selection (crop).
        public let crop: Rectangle?
        /// Enable Deblock (InputDeblockFilter) to produce smoother motion in the output. Default is disabled. Only manually controllable for MPEG2 and uncompressed video inputs.
        public let deblockFilter: InputDeblockFilter?
        /// Settings for decrypting any input files that you encrypt before you upload them to Amazon S3. MediaConvert can decrypt files only when you use AWS Key Management Service (KMS) to encrypt the data key that you use to encrypt your content.
        public let decryptionSettings: InputDecryptionSettings?
        /// Enable Denoise (InputDenoiseFilter) to filter noise from the input.  Default is disabled. Only applicable to MPEG2, H.264, H.265, and uncompressed video inputs.
        public let denoiseFilter: InputDenoiseFilter?
        /// Specify the source file for your transcoding job. You can use multiple inputs in a single job. The service concatenates these inputs, in the order that you specify them in the job, to create the outputs. If your input format is IMF, specify your input by providing the path to your CPL. For example, "s3://bucket/vf/cpl.xml". If the CPL is in an incomplete IMP, make sure to use *Supplemental IMPs* (SupplementalImps) to specify any supplemental IMPs that contain assets referenced by the CPL.
        public let fileInput: String?
        /// Specify how the transcoding service applies the denoise and deblock filters. You must also enable the filters separately, with Denoise (InputDenoiseFilter) and Deblock (InputDeblockFilter). * Auto - The transcoding service determines whether to apply filtering, depending on input type and quality. * Disable - The input is not filtered. This is true even if you use the API to enable them in (InputDeblockFilter) and (InputDeblockFilter). * Force - The input is filtered regardless of input type.
        public let filterEnable: InputFilterEnable?
        /// Use Filter strength (FilterStrength) to adjust the magnitude the input filter settings (Deblock and Denoise). The range is -5 to 5. Default is 0.
        public let filterStrength: Int?
        /// Enable the image inserter feature to include a graphic overlay on your video. Enable or disable this feature for each input individually. This setting is disabled by default.
        public let imageInserter: ImageInserter?
        /// (InputClippings) contains sets of start and end times that together specify a portion of the input to be used in the outputs. If you provide only a start time, the clip will be the entire input from that point to the end. If you provide only an end time, it will be the entire input up to that point. When you specify more than one input clip, the transcoding service creates the job outputs by stringing the clips together in the order you specify them.
        public let inputClippings: [InputClipping]?
        /// When you have a progressive segmented frame (PsF) input, use this setting to flag the input as PsF. MediaConvert doesn't automatically detect PsF. Therefore, flagging your input as PsF results in better preservation of video quality when you do deinterlacing and frame rate conversion. If you don't specify, the default value is Auto (AUTO). Auto is the correct setting for all inputs that are not PsF. Don't set this value to PsF when your input is interlaced. Doing so creates horizontal interlacing artifacts.
        public let inputScanType: InputScanType?
        /// Use Selection placement (position) to define the video area in your output frame. The area outside of the rectangle that you specify here is black. If you specify a value here, it will override any value that you specify in the output setting Selection placement (position). If you specify a value here, this will override any AFD values in your input, even if you set Respond to AFD (RespondToAfd) to Respond (RESPOND). If you specify a value here, this will ignore anything that you specify for the setting Scaling Behavior (scalingBehavior).
        public let position: Rectangle?
        /// Use Program (programNumber) to select a specific program from within a multi-program transport stream. Note that Quad 4K is not currently supported. Default is the first program within the transport stream. If the program you specify doesn't exist, the transcoding service will use this default.
        public let programNumber: Int?
        /// Set PSI control (InputPsiControl) for transport stream inputs to specify which data the demux process to scans. * Ignore PSI - Scan all PIDs for audio and video. * Use PSI - Scan only PSI data.
        public let psiControl: InputPsiControl?
        /// Provide a list of any necessary supplemental IMPs. You need supplemental IMPs if the CPL that you're using for your input is in an incomplete IMP. Specify either the supplemental IMP directories with a trailing slash or the ASSETMAP.xml files. For example ["s3://bucket/ov/", "s3://bucket/vf2/ASSETMAP.xml"]. You don't need to specify the IMP that contains your input CPL, because the service automatically detects it.
        public let supplementalImps: [String]?
        /// Use this Timecode source setting, located under the input settings (InputTimecodeSource), to specify how the service counts input video frames. This input frame count affects only the behavior of features that apply to a single input at a time, such as input clipping and synchronizing some captions formats. Choose Embedded (EMBEDDED) to use the timecodes in your input video. Choose Start at zero (ZEROBASED) to start the first frame at zero. Choose Specified start (SPECIFIEDSTART) to start the first frame at the timecode that you specify in the setting Start timecode (timecodeStart). If you don't specify a value for Timecode source, the service will use Embedded by default. For more information about timecodes, see https://docs.aws.amazon.com/console/mediaconvert/timecode.
        public let timecodeSource: InputTimecodeSource?
        /// Specify the timecode that you want the service to use for this input's initial frame. To use this setting, you must set the Timecode source setting, located under the input settings (InputTimecodeSource), to Specified start (SPECIFIEDSTART). For more information about timecodes, see https://docs.aws.amazon.com/console/mediaconvert/timecode.
        public let timecodeStart: String?
        /// Selector for video.
        public let videoSelector: VideoSelector?

        public init(audioSelectorGroups: [String: AudioSelectorGroup]? = nil, audioSelectors: [String: AudioSelector]? = nil, captionSelectors: [String: CaptionSelector]? = nil, crop: Rectangle? = nil, deblockFilter: InputDeblockFilter? = nil, decryptionSettings: InputDecryptionSettings? = nil, denoiseFilter: InputDenoiseFilter? = nil, fileInput: String? = nil, filterEnable: InputFilterEnable? = nil, filterStrength: Int? = nil, imageInserter: ImageInserter? = nil, inputClippings: [InputClipping]? = nil, inputScanType: InputScanType? = nil, position: Rectangle? = nil, programNumber: Int? = nil, psiControl: InputPsiControl? = nil, supplementalImps: [String]? = nil, timecodeSource: InputTimecodeSource? = nil, timecodeStart: String? = nil, videoSelector: VideoSelector? = nil) {
            self.audioSelectorGroups = audioSelectorGroups
            self.audioSelectors = audioSelectors
            self.captionSelectors = captionSelectors
            self.crop = crop
            self.deblockFilter = deblockFilter
            self.decryptionSettings = decryptionSettings
            self.denoiseFilter = denoiseFilter
            self.fileInput = fileInput
            self.filterEnable = filterEnable
            self.filterStrength = filterStrength
            self.imageInserter = imageInserter
            self.inputClippings = inputClippings
            self.inputScanType = inputScanType
            self.position = position
            self.programNumber = programNumber
            self.psiControl = psiControl
            self.supplementalImps = supplementalImps
            self.timecodeSource = timecodeSource
            self.timecodeStart = timecodeStart
            self.videoSelector = videoSelector
        }

        public func validate(name: String) throws {
            try self.audioSelectorGroups?.forEach {
                try $0.value.validate(name: "\(name).audioSelectorGroups[\"\($0.key)\"]")
            }
            try self.audioSelectors?.forEach {
                try $0.value.validate(name: "\(name).audioSelectors[\"\($0.key)\"]")
            }
            try self.captionSelectors?.forEach {
                try $0.value.validate(name: "\(name).captionSelectors[\"\($0.key)\"]")
            }
            try self.crop?.validate(name: "\(name).crop")
            try self.decryptionSettings?.validate(name: "\(name).decryptionSettings")
            try self.validate(self.fileInput, name: "fileInput", parent: name, pattern: "^((s3://([^\\/]+\\/+)+([^\\/\\.]+|(([^\\/]*)\\.([mM]2[pP]|[mM]2[vV]|[mM][pP][eE][gG]|[mM][pP]3|[aA][vV][iI]|[mM][pP]4|[fF][lL][vV]|[mM][pP][tT]|[mM][pP][gG]|[mM]4[vV]|[tT][rR][pP]|[fF]4[vV]|[mM]2[tT][sS]|[tT][sS]|264|[hH]264|[mM][kK][vV]|[mM][kK][aA]|[mM][oO][vV]|[mM][tT][sS]|[mM]2[tT]|[wW][mM][vVaA]|[aA][sS][fF]|[vV][oO][bB]|3[gG][pP]|3[gG][pP][pP]|[mM][xX][fF]|[dD][iI][vV][xX]|[xX][vV][iI][dD]|[rR][aA][wW]|[dD][vV]|[gG][xX][fF]|[mM]1[vV]|3[gG]2|[vV][mM][fF]|[mM]3[uU]8|[wW][eE][bB][mM]|[lL][cC][hH]|[gG][xX][fF]_[mM][pP][eE][gG]2|[mM][xX][fF]_[mM][pP][eE][gG]2|[mM][xX][fF][hH][dD]|[wW][aA][vV]|[yY]4[mM]|[xX][mM][lL]|[oO][gG][gGaA]))))|(https?://([^\\/]+\\/+)+([^\\/\\.]+|(([^\\/]*)\\.([mM]2[vV]|[mM][pP][eE][gG]|[mM][pP]3|[aA][vV][iI]|[mM][pP]4|[fF][lL][vV]|[mM][pP][tT]|[mM][pP][gG]|[mM]4[vV]|[tT][rR][pP]|[fF]4[vV]|[mM]2[tT][sS]|[tT][sS]|264|[hH]264|[mM][kK][vV]|[mM][kK][aA]|[mM][oO][vV]|[mM][tT][sS]|[mM]2[tT]|[wW][mM][vVaA]|[aA][sS][fF]|[vV][oO][bB]|3[gG][pP]|3[gG][pP][pP]|[mM][xX][fF]|[dD][iI][vV][xX]|[xX][vV][iI][dD]|[rR][aA][wW]|[dD][vV]|[gG][xX][fF]|[mM]1[vV]|3[gG]2|[vV][mM][fF]|[mM]3[uU]8|[wW][eE][bB][mM]|[lL][cC][hH]|[gG][xX][fF]_[mM][pP][eE][gG]2|[mM][xX][fF]_[mM][pP][eE][gG]2|[mM][xX][fF][hH][dD]|[wW][aA][vV]|[yY]4[mM]|[xX][mM][lL]|[oO][gG][gGaA])))(\\?([^&=]+=[^&]+&)*[^&=]+=[^&]+)?))$")
            try self.validate(self.filterStrength, name: "filterStrength", parent: name, max: 5)
            try self.validate(self.filterStrength, name: "filterStrength", parent: name, min: -5)
            try self.imageInserter?.validate(name: "\(name).imageInserter")
            try self.inputClippings?.forEach {
                try $0.validate(name: "\(name).inputClippings[]")
            }
            try self.position?.validate(name: "\(name).position")
            try self.validate(self.programNumber, name: "programNumber", parent: name, max: 2_147_483_647)
            try self.validate(self.programNumber, name: "programNumber", parent: name, min: 1)
            try self.supplementalImps?.forEach {
                try validate($0, name: "supplementalImps[]", parent: name, pattern: "^s3:\\/\\/.*\\/(ASSETMAP.xml)?$")
            }
            try self.validate(self.timecodeStart, name: "timecodeStart", parent: name, max: 11)
            try self.validate(self.timecodeStart, name: "timecodeStart", parent: name, min: 11)
            try self.validate(self.timecodeStart, name: "timecodeStart", parent: name, pattern: "^((([0-1]\\d)|(2[0-3]))(:[0-5]\\d){2}([:;][0-5]\\d))$")
            try self.videoSelector?.validate(name: "\(name).videoSelector")
        }

        private enum CodingKeys: String, CodingKey {
            case audioSelectorGroups
            case audioSelectors
            case captionSelectors
            case crop
            case deblockFilter
            case decryptionSettings
            case denoiseFilter
            case fileInput
            case filterEnable
            case filterStrength
            case imageInserter
            case inputClippings
            case inputScanType
            case position
            case programNumber
            case psiControl
            case supplementalImps
            case timecodeSource
            case timecodeStart
            case videoSelector
        }
    }

    public struct InputClipping: AWSEncodableShape & AWSDecodableShape {
        /// Set End timecode (EndTimecode) to the end of the portion of the input you are clipping. The frame corresponding to the End timecode value is included in the clip. Start timecode or End timecode may be left blank, but not both. Use the format HH:MM:SS:FF or HH:MM:SS;FF, where HH is the hour, MM is the minute, SS is the second, and FF is the frame number. When choosing this value, take into account your setting for timecode source under input settings (InputTimecodeSource). For example, if you have embedded timecodes that start at 01:00:00:00 and you want your clip to end six minutes into the video, use 01:06:00:00.
        public let endTimecode: String?
        /// Set Start timecode (StartTimecode) to the beginning of the portion of the input you are clipping. The frame corresponding to the Start timecode value is included in the clip. Start timecode or End timecode may be left blank, but not both. Use the format HH:MM:SS:FF or HH:MM:SS;FF, where HH is the hour, MM is the minute, SS is the second, and FF is the frame number. When choosing this value, take into account your setting for Input timecode source. For example, if you have embedded timecodes that start at 01:00:00:00 and you want your clip to begin five minutes into the video, use 01:05:00:00.
        public let startTimecode: String?

        public init(endTimecode: String? = nil, startTimecode: String? = nil) {
            self.endTimecode = endTimecode
            self.startTimecode = startTimecode
        }

        public func validate(name: String) throws {
            try self.validate(self.endTimecode, name: "endTimecode", parent: name, pattern: "^([01][0-9]|2[0-4]):[0-5][0-9]:[0-5][0-9][:;][0-9]{2}$")
            try self.validate(self.startTimecode, name: "startTimecode", parent: name, pattern: "^([01][0-9]|2[0-4]):[0-5][0-9]:[0-5][0-9][:;][0-9]{2}$")
        }

        private enum CodingKeys: String, CodingKey {
            case endTimecode
            case startTimecode
        }
    }

    public struct InputDecryptionSettings: AWSEncodableShape & AWSDecodableShape {
        /// Specify the encryption mode that you used to encrypt your input files.
        public let decryptionMode: DecryptionMode?
        /// Warning! Don't provide your encryption key in plaintext. Your job settings could be intercepted, making your encrypted content vulnerable. Specify the encrypted version of the data key that you used to encrypt your content. The data key must be encrypted by AWS Key Management Service (KMS). The key can be 128, 192, or 256 bits.
        public let encryptedDecryptionKey: String?
        /// Specify the initialization vector that you used when you encrypted your content before uploading it to Amazon S3. You can use a 16-byte initialization vector with any encryption mode. Or, you can use a 12-byte initialization vector with GCM or CTR. MediaConvert accepts only initialization vectors that are base64-encoded.
        public let initializationVector: String?
        /// Specify the AWS Region for AWS Key Management Service (KMS) that you used to encrypt your data key, if that Region is different from the one you are using for AWS Elemental MediaConvert.
        public let kmsKeyRegion: String?

        public init(decryptionMode: DecryptionMode? = nil, encryptedDecryptionKey: String? = nil, initializationVector: String? = nil, kmsKeyRegion: String? = nil) {
            self.decryptionMode = decryptionMode
            self.encryptedDecryptionKey = encryptedDecryptionKey
            self.initializationVector = initializationVector
            self.kmsKeyRegion = kmsKeyRegion
        }

        public func validate(name: String) throws {
            try self.validate(self.encryptedDecryptionKey, name: "encryptedDecryptionKey", parent: name, max: 512)
            try self.validate(self.encryptedDecryptionKey, name: "encryptedDecryptionKey", parent: name, min: 24)
            try self.validate(self.encryptedDecryptionKey, name: "encryptedDecryptionKey", parent: name, pattern: "^[A-Za-z0-9+\\/]+={0,2}$")
            try self.validate(self.initializationVector, name: "initializationVector", parent: name, max: 24)
            try self.validate(self.initializationVector, name: "initializationVector", parent: name, min: 16)
            try self.validate(self.initializationVector, name: "initializationVector", parent: name, pattern: "^[A-Za-z0-9+\\/]{22}==$|^[A-Za-z0-9+\\/]{16}$")
            try self.validate(self.kmsKeyRegion, name: "kmsKeyRegion", parent: name, max: 19)
            try self.validate(self.kmsKeyRegion, name: "kmsKeyRegion", parent: name, min: 9)
            try self.validate(self.kmsKeyRegion, name: "kmsKeyRegion", parent: name, pattern: "^[a-z-]{2,6}-(east|west|central|((north|south)(east|west)?))-[1-9]{1,2}$")
        }

        private enum CodingKeys: String, CodingKey {
            case decryptionMode
            case encryptedDecryptionKey
            case initializationVector
            case kmsKeyRegion
        }
    }

    public struct InputTemplate: AWSEncodableShape & AWSDecodableShape {
        /// Specifies set of audio selectors within an input to combine. An input may have multiple audio selector groups. See "Audio Selector Group":#inputs-audio_selector_group for more information.
        public let audioSelectorGroups: [String: AudioSelectorGroup]?
        /// Use Audio selectors (AudioSelectors) to specify a track or set of tracks from the input that you will use in your outputs. You can use multiple Audio selectors per input.
        public let audioSelectors: [String: AudioSelector]?
        /// Use captions selectors to specify the captions data from your input that you use in your outputs. You can use up to 20 captions selectors per input.
        public let captionSelectors: [String: CaptionSelector]?
        /// Use Cropping selection (crop) to specify the video area that the service will include in the output video frame. If you specify a value here, it will override any value that you specify in the output setting Cropping selection (crop).
        public let crop: Rectangle?
        /// Enable Deblock (InputDeblockFilter) to produce smoother motion in the output. Default is disabled. Only manually controllable for MPEG2 and uncompressed video inputs.
        public let deblockFilter: InputDeblockFilter?
        /// Enable Denoise (InputDenoiseFilter) to filter noise from the input.  Default is disabled. Only applicable to MPEG2, H.264, H.265, and uncompressed video inputs.
        public let denoiseFilter: InputDenoiseFilter?
        /// Specify how the transcoding service applies the denoise and deblock filters. You must also enable the filters separately, with Denoise (InputDenoiseFilter) and Deblock (InputDeblockFilter). * Auto - The transcoding service determines whether to apply filtering, depending on input type and quality. * Disable - The input is not filtered. This is true even if you use the API to enable them in (InputDeblockFilter) and (InputDeblockFilter). * Force - The input is filtered regardless of input type.
        public let filterEnable: InputFilterEnable?
        /// Use Filter strength (FilterStrength) to adjust the magnitude the input filter settings (Deblock and Denoise). The range is -5 to 5. Default is 0.
        public let filterStrength: Int?
        /// Enable the image inserter feature to include a graphic overlay on your video. Enable or disable this feature for each input individually. This setting is disabled by default.
        public let imageInserter: ImageInserter?
        /// (InputClippings) contains sets of start and end times that together specify a portion of the input to be used in the outputs. If you provide only a start time, the clip will be the entire input from that point to the end. If you provide only an end time, it will be the entire input up to that point. When you specify more than one input clip, the transcoding service creates the job outputs by stringing the clips together in the order you specify them.
        public let inputClippings: [InputClipping]?
        /// When you have a progressive segmented frame (PsF) input, use this setting to flag the input as PsF. MediaConvert doesn't automatically detect PsF. Therefore, flagging your input as PsF results in better preservation of video quality when you do deinterlacing and frame rate conversion. If you don't specify, the default value is Auto (AUTO). Auto is the correct setting for all inputs that are not PsF. Don't set this value to PsF when your input is interlaced. Doing so creates horizontal interlacing artifacts.
        public let inputScanType: InputScanType?
        /// Use Selection placement (position) to define the video area in your output frame. The area outside of the rectangle that you specify here is black. If you specify a value here, it will override any value that you specify in the output setting Selection placement (position). If you specify a value here, this will override any AFD values in your input, even if you set Respond to AFD (RespondToAfd) to Respond (RESPOND). If you specify a value here, this will ignore anything that you specify for the setting Scaling Behavior (scalingBehavior).
        public let position: Rectangle?
        /// Use Program (programNumber) to select a specific program from within a multi-program transport stream. Note that Quad 4K is not currently supported. Default is the first program within the transport stream. If the program you specify doesn't exist, the transcoding service will use this default.
        public let programNumber: Int?
        /// Set PSI control (InputPsiControl) for transport stream inputs to specify which data the demux process to scans. * Ignore PSI - Scan all PIDs for audio and video. * Use PSI - Scan only PSI data.
        public let psiControl: InputPsiControl?
        /// Use this Timecode source setting, located under the input settings (InputTimecodeSource), to specify how the service counts input video frames. This input frame count affects only the behavior of features that apply to a single input at a time, such as input clipping and synchronizing some captions formats. Choose Embedded (EMBEDDED) to use the timecodes in your input video. Choose Start at zero (ZEROBASED) to start the first frame at zero. Choose Specified start (SPECIFIEDSTART) to start the first frame at the timecode that you specify in the setting Start timecode (timecodeStart). If you don't specify a value for Timecode source, the service will use Embedded by default. For more information about timecodes, see https://docs.aws.amazon.com/console/mediaconvert/timecode.
        public let timecodeSource: InputTimecodeSource?
        /// Specify the timecode that you want the service to use for this input's initial frame. To use this setting, you must set the Timecode source setting, located under the input settings (InputTimecodeSource), to Specified start (SPECIFIEDSTART). For more information about timecodes, see https://docs.aws.amazon.com/console/mediaconvert/timecode.
        public let timecodeStart: String?
        /// Selector for video.
        public let videoSelector: VideoSelector?

        public init(audioSelectorGroups: [String: AudioSelectorGroup]? = nil, audioSelectors: [String: AudioSelector]? = nil, captionSelectors: [String: CaptionSelector]? = nil, crop: Rectangle? = nil, deblockFilter: InputDeblockFilter? = nil, denoiseFilter: InputDenoiseFilter? = nil, filterEnable: InputFilterEnable? = nil, filterStrength: Int? = nil, imageInserter: ImageInserter? = nil, inputClippings: [InputClipping]? = nil, inputScanType: InputScanType? = nil, position: Rectangle? = nil, programNumber: Int? = nil, psiControl: InputPsiControl? = nil, timecodeSource: InputTimecodeSource? = nil, timecodeStart: String? = nil, videoSelector: VideoSelector? = nil) {
            self.audioSelectorGroups = audioSelectorGroups
            self.audioSelectors = audioSelectors
            self.captionSelectors = captionSelectors
            self.crop = crop
            self.deblockFilter = deblockFilter
            self.denoiseFilter = denoiseFilter
            self.filterEnable = filterEnable
            self.filterStrength = filterStrength
            self.imageInserter = imageInserter
            self.inputClippings = inputClippings
            self.inputScanType = inputScanType
            self.position = position
            self.programNumber = programNumber
            self.psiControl = psiControl
            self.timecodeSource = timecodeSource
            self.timecodeStart = timecodeStart
            self.videoSelector = videoSelector
        }

        public func validate(name: String) throws {
            try self.audioSelectorGroups?.forEach {
                try $0.value.validate(name: "\(name).audioSelectorGroups[\"\($0.key)\"]")
            }
            try self.audioSelectors?.forEach {
                try $0.value.validate(name: "\(name).audioSelectors[\"\($0.key)\"]")
            }
            try self.captionSelectors?.forEach {
                try $0.value.validate(name: "\(name).captionSelectors[\"\($0.key)\"]")
            }
            try self.crop?.validate(name: "\(name).crop")
            try self.validate(self.filterStrength, name: "filterStrength", parent: name, max: 5)
            try self.validate(self.filterStrength, name: "filterStrength", parent: name, min: -5)
            try self.imageInserter?.validate(name: "\(name).imageInserter")
            try self.inputClippings?.forEach {
                try $0.validate(name: "\(name).inputClippings[]")
            }
            try self.position?.validate(name: "\(name).position")
            try self.validate(self.programNumber, name: "programNumber", parent: name, max: 2_147_483_647)
            try self.validate(self.programNumber, name: "programNumber", parent: name, min: 1)
            try self.validate(self.timecodeStart, name: "timecodeStart", parent: name, max: 11)
            try self.validate(self.timecodeStart, name: "timecodeStart", parent: name, min: 11)
            try self.validate(self.timecodeStart, name: "timecodeStart", parent: name, pattern: "^((([0-1]\\d)|(2[0-3]))(:[0-5]\\d){2}([:;][0-5]\\d))$")
            try self.videoSelector?.validate(name: "\(name).videoSelector")
        }

        private enum CodingKeys: String, CodingKey {
            case audioSelectorGroups
            case audioSelectors
            case captionSelectors
            case crop
            case deblockFilter
            case denoiseFilter
            case filterEnable
            case filterStrength
            case imageInserter
            case inputClippings
            case inputScanType
            case position
            case programNumber
            case psiControl
            case timecodeSource
            case timecodeStart
            case videoSelector
        }
    }

    public struct InsertableImage: AWSEncodableShape & AWSDecodableShape {
        /// Specify the time, in milliseconds, for the image to remain on the output video. This duration includes fade-in time but not fade-out time.
        public let duration: Int?
        /// Specify the length of time, in milliseconds, between the Start time that you specify for the image insertion and the time that the image appears at full opacity. Full opacity is the level that you specify for the opacity setting. If you don't specify a value for Fade-in, the image will appear abruptly at the overlay start time.
        public let fadeIn: Int?
        /// Specify the length of time, in milliseconds, between the end of the time that you have specified for the image overlay Duration and when the overlaid image has faded to total transparency. If you don't specify a value for Fade-out, the image will disappear abruptly at the end of the inserted image duration.
        public let fadeOut: Int?
        /// Specify the height of the inserted image in pixels. If you specify a value that's larger than the video resolution height, the service will crop your overlaid image to fit. To use the native height of the image, keep this setting blank.
        public let height: Int?
        /// Specify the HTTP, HTTPS, or Amazon S3 location of the image that you want to overlay on the video. Use a PNG or TGA file.
        public let imageInserterInput: String?
        /// Specify the distance, in pixels, between the inserted image and the left edge of the video frame. Required for any image overlay that you specify.
        public let imageX: Int?
        /// Specify the distance, in pixels, between the overlaid image and the top edge of the video frame. Required for any image overlay that you specify.
        public let imageY: Int?
        /// Specify how overlapping inserted images appear. Images with higher values for Layer appear on top of images with lower values for Layer.
        public let layer: Int?
        /// Use Opacity (Opacity) to specify how much of the underlying video shows through the inserted image. 0 is transparent and 100 is fully opaque. Default is 50.
        public let opacity: Int?
        /// Specify the timecode of the frame that you want the overlay to first appear on. This must be in timecode (HH:MM:SS:FF or HH:MM:SS;FF) format. Remember to take into account your timecode source settings.
        public let startTime: String?
        /// Specify the width of the inserted image in pixels. If you specify a value that's larger than the video resolution width, the service will crop your overlaid image to fit. To use the native width of the image, keep this setting blank.
        public let width: Int?

        public init(duration: Int? = nil, fadeIn: Int? = nil, fadeOut: Int? = nil, height: Int? = nil, imageInserterInput: String? = nil, imageX: Int? = nil, imageY: Int? = nil, layer: Int? = nil, opacity: Int? = nil, startTime: String? = nil, width: Int? = nil) {
            self.duration = duration
            self.fadeIn = fadeIn
            self.fadeOut = fadeOut
            self.height = height
            self.imageInserterInput = imageInserterInput
            self.imageX = imageX
            self.imageY = imageY
            self.layer = layer
            self.opacity = opacity
            self.startTime = startTime
            self.width = width
        }

        public func validate(name: String) throws {
            try self.validate(self.duration, name: "duration", parent: name, max: 2_147_483_647)
            try self.validate(self.duration, name: "duration", parent: name, min: 0)
            try self.validate(self.fadeIn, name: "fadeIn", parent: name, max: 2_147_483_647)
            try self.validate(self.fadeIn, name: "fadeIn", parent: name, min: 0)
            try self.validate(self.fadeOut, name: "fadeOut", parent: name, max: 2_147_483_647)
            try self.validate(self.fadeOut, name: "fadeOut", parent: name, min: 0)
            try self.validate(self.height, name: "height", parent: name, max: 2_147_483_647)
            try self.validate(self.height, name: "height", parent: name, min: 0)
            try self.validate(self.imageInserterInput, name: "imageInserterInput", parent: name, min: 14)
            try self.validate(self.imageInserterInput, name: "imageInserterInput", parent: name, pattern: "^((s3://(.*?)\\.(bmp|BMP|png|PNG|tga|TGA))|(https?://(.*?)\\.(bmp|BMP|png|PNG|tga|TGA)(\\?([^&=]+=[^&]+&)*[^&=]+=[^&]+)?))$")
            try self.validate(self.imageX, name: "imageX", parent: name, max: 2_147_483_647)
            try self.validate(self.imageX, name: "imageX", parent: name, min: 0)
            try self.validate(self.imageY, name: "imageY", parent: name, max: 2_147_483_647)
            try self.validate(self.imageY, name: "imageY", parent: name, min: 0)
            try self.validate(self.layer, name: "layer", parent: name, max: 99)
            try self.validate(self.layer, name: "layer", parent: name, min: 0)
            try self.validate(self.opacity, name: "opacity", parent: name, max: 100)
            try self.validate(self.opacity, name: "opacity", parent: name, min: 0)
            try self.validate(self.startTime, name: "startTime", parent: name, pattern: "^((([0-1]\\d)|(2[0-3]))(:[0-5]\\d){2}([:;][0-5]\\d))$")
            try self.validate(self.width, name: "width", parent: name, max: 2_147_483_647)
            try self.validate(self.width, name: "width", parent: name, min: 0)
        }

        private enum CodingKeys: String, CodingKey {
            case duration
            case fadeIn
            case fadeOut
            case height
            case imageInserterInput
            case imageX
            case imageY
            case layer
            case opacity
            case startTime
            case width
        }
    }

    public struct Job: AWSDecodableShape {
        /// Accelerated transcoding can significantly speed up jobs with long, visually complex content.
        public let accelerationSettings: AccelerationSettings?
        /// Describes whether the current job is running with accelerated transcoding. For jobs that have Acceleration (AccelerationMode) set to DISABLED, AccelerationStatus is always NOT_APPLICABLE. For jobs that have Acceleration (AccelerationMode) set to ENABLED or PREFERRED, AccelerationStatus is one of the other states. AccelerationStatus is IN_PROGRESS initially, while the service determines whether the input files and job settings are compatible with accelerated transcoding. If they are, AcclerationStatus is ACCELERATED. If your input files and job settings aren't compatible with accelerated transcoding, the service either fails your job or runs it without accelerated transcoding, depending on how you set Acceleration (AccelerationMode). When the service runs your job without accelerated transcoding, AccelerationStatus is NOT_ACCELERATED.
        public let accelerationStatus: AccelerationStatus?
        /// An identifier for this resource that is unique within all of AWS.
        public let arn: String?
        /// The tag type that AWS Billing and Cost Management will use to sort your AWS Elemental MediaConvert costs on any billing report that you set up.
        public let billingTagsSource: BillingTagsSource?
        /// The time, in Unix epoch format in seconds, when the job got created.
        @OptionalCustomCoding<UnixEpochDateCoder>
        public var createdAt: Date?
        /// A job's phase can be PROBING, TRANSCODING OR UPLOADING
        public let currentPhase: JobPhase?
        /// Error code for the job
        public let errorCode: Int?
        /// Error message of Job
        public let errorMessage: String?
        /// Optional list of hop destinations.
        public let hopDestinations: [HopDestination]?
        /// A portion of the job's ARN, unique within your AWS Elemental MediaConvert resources
        public let id: String?
        /// An estimate of how far your job has progressed. This estimate is shown as a percentage of the total time from when your job leaves its queue to when your output files appear in your output Amazon S3 bucket. AWS Elemental MediaConvert provides jobPercentComplete in CloudWatch STATUS_UPDATE events and in the response to GetJob and ListJobs requests. The jobPercentComplete estimate is reliable for the following input containers: Quicktime, Transport Stream, MP4, and MXF. For some jobs, the service can't provide information about job progress. In those cases, jobPercentComplete returns a null value.
        public let jobPercentComplete: Int?
        /// The job template that the job is created from, if it is created from a job template.
        public let jobTemplate: String?
        /// Provides messages from the service about jobs that you have already successfully submitted.
        public let messages: JobMessages?
        /// List of output group details
        public let outputGroupDetails: [OutputGroupDetail]?
        /// Relative priority on the job.
        public let priority: Int?
        /// When you create a job, you can specify a queue to send it to. If you don't specify, the job will go to the default queue. For more about queues, see the User Guide topic at https://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html
        public let queue: String?
        /// The job's queue hopping history.
        public let queueTransitions: [QueueTransition]?
        /// The number of times that the service automatically attempted to process your job after encountering an error.
        public let retryCount: Int?
        /// The IAM role you use for creating this job. For details about permissions, see the User Guide topic at the User Guide at https://docs.aws.amazon.com/mediaconvert/latest/ug/iam-role.html
        public let role: String
        /// JobSettings contains all the transcode settings for a job.
        public let settings: JobSettings
        /// Enable this setting when you run a test job to estimate how many reserved transcoding slots (RTS) you need. When this is enabled, MediaConvert runs your job from an on-demand queue with similar performance to what you will see with one RTS in a reserved queue. This setting is disabled by default.
        public let simulateReservedQueue: SimulateReservedQueue?
        /// A job's status can be SUBMITTED, PROGRESSING, COMPLETE, CANCELED, or ERROR.
        public let status: JobStatus?
        /// Specify how often MediaConvert sends STATUS_UPDATE events to Amazon CloudWatch Events. Set the interval, in seconds, between status updates. MediaConvert sends an update at this interval from the time the service begins processing your job to the time it completes the transcode or encounters an error.
        public let statusUpdateInterval: StatusUpdateInterval?
        /// Information about when jobs are submitted, started, and finished is specified in Unix epoch format in seconds.
        public let timing: Timing?
        /// User-defined metadata that you want to associate with an MediaConvert job. You specify metadata in key/value pairs.
        public let userMetadata: [String: String]?

        public init(accelerationSettings: AccelerationSettings? = nil, accelerationStatus: AccelerationStatus? = nil, arn: String? = nil, billingTagsSource: BillingTagsSource? = nil, createdAt: Date? = nil, currentPhase: JobPhase? = nil, errorCode: Int? = nil, errorMessage: String? = nil, hopDestinations: [HopDestination]? = nil, id: String? = nil, jobPercentComplete: Int? = nil, jobTemplate: String? = nil, messages: JobMessages? = nil, outputGroupDetails: [OutputGroupDetail]? = nil, priority: Int? = nil, queue: String? = nil, queueTransitions: [QueueTransition]? = nil, retryCount: Int? = nil, role: String, settings: JobSettings, simulateReservedQueue: SimulateReservedQueue? = nil, status: JobStatus? = nil, statusUpdateInterval: StatusUpdateInterval? = nil, timing: Timing? = nil, userMetadata: [String: String]? = nil) {
            self.accelerationSettings = accelerationSettings
            self.accelerationStatus = accelerationStatus
            self.arn = arn
            self.billingTagsSource = billingTagsSource
            self.createdAt = createdAt
            self.currentPhase = currentPhase
            self.errorCode = errorCode
            self.errorMessage = errorMessage
            self.hopDestinations = hopDestinations
            self.id = id
            self.jobPercentComplete = jobPercentComplete
            self.jobTemplate = jobTemplate
            self.messages = messages
            self.outputGroupDetails = outputGroupDetails
            self.priority = priority
            self.queue = queue
            self.queueTransitions = queueTransitions
            self.retryCount = retryCount
            self.role = role
            self.settings = settings
            self.simulateReservedQueue = simulateReservedQueue
            self.status = status
            self.statusUpdateInterval = statusUpdateInterval
            self.timing = timing
            self.userMetadata = userMetadata
        }

        private enum CodingKeys: String, CodingKey {
            case accelerationSettings
            case accelerationStatus
            case arn
            case billingTagsSource
            case createdAt
            case currentPhase
            case errorCode
            case errorMessage
            case hopDestinations
            case id
            case jobPercentComplete
            case jobTemplate
            case messages
            case outputGroupDetails
            case priority
            case queue
            case queueTransitions
            case retryCount
            case role
            case settings
            case simulateReservedQueue
            case status
            case statusUpdateInterval
            case timing
            case userMetadata
        }
    }

    public struct JobMessages: AWSDecodableShape {
        /// List of messages that are informational only and don't indicate a problem with your job.
        public let info: [String]?
        /// List of messages that warn about conditions that might cause your job not to run or to fail.
        public let warning: [String]?

        public init(info: [String]? = nil, warning: [String]? = nil) {
            self.info = info
            self.warning = warning
        }

        private enum CodingKeys: String, CodingKey {
            case info
            case warning
        }
    }

    public struct JobSettings: AWSEncodableShape & AWSDecodableShape {
        /// When specified, this offset (in milliseconds) is added to the input Ad Avail PTS time.
        public let adAvailOffset: Int?
        /// Settings for ad avail blanking.  Video can be blanked or overlaid with an image, and audio muted during SCTE-35 triggered ad avails.
        public let availBlanking: AvailBlanking?
        /// Settings for Event Signaling And Messaging (ESAM).
        public let esam: EsamSettings?
        /// Use Inputs (inputs) to define source file used in the transcode job. There can be multiple inputs add in a job. These inputs will be concantenated together to create the output.
        public let inputs: [Input]?
        /// Overlay motion graphics on top of your video. The motion graphics that you specify here appear on all outputs in all output groups.
        public let motionImageInserter: MotionImageInserter?
        /// Settings for your Nielsen configuration. If you don't do Nielsen measurement and analytics, ignore these settings. When you enable Nielsen configuration (nielsenConfiguration), MediaConvert enables PCM to ID3 tagging for all outputs in the job. To enable Nielsen configuration programmatically, include an instance of nielsenConfiguration in your JSON job specification. Even if you don't include any children of nielsenConfiguration, you still enable the setting.
        public let nielsenConfiguration: NielsenConfiguration?
        /// Ignore these settings unless you are using Nielsen non-linear watermarking. Specify the values that  MediaConvert uses to generate and place Nielsen watermarks in your output audio. In addition to  specifying these values, you also need to set up your cloud TIC server. These settings apply to  every output in your job. The MediaConvert implementation is currently with the following Nielsen versions: Nielsen Watermark SDK Version 5.2.1 Nielsen NLM Watermark Engine Version 1.2.7 Nielsen Watermark Authenticator [SID_TIC] Version [5.0.0]
        public let nielsenNonLinearWatermark: NielsenNonLinearWatermarkSettings?
        /// (OutputGroups) contains one group of settings for each set of outputs that share a common package type. All unpackaged files (MPEG-4, MPEG-2 TS, Quicktime, MXF, and no container) are grouped in a single output group as well. Required in (OutputGroups) is a group of settings that apply to the whole group. This required object depends on the value you set for (Type) under (OutputGroups)>(OutputGroupSettings). Type, settings object pairs are as follows. * FILE_GROUP_SETTINGS, FileGroupSettings * HLS_GROUP_SETTINGS, HlsGroupSettings * DASH_ISO_GROUP_SETTINGS, DashIsoGroupSettings * MS_SMOOTH_GROUP_SETTINGS, MsSmoothGroupSettings * CMAF_GROUP_SETTINGS, CmafGroupSettings
        public let outputGroups: [OutputGroup]?
        /// Contains settings used to acquire and adjust timecode information from inputs.
        public let timecodeConfig: TimecodeConfig?
        /// Enable Timed metadata insertion (TimedMetadataInsertion) to include ID3 tags in any HLS outputs. To include timed metadata, you must enable it here, enable it in each output container, and specify tags and timecodes in ID3 insertion (Id3Insertion) objects.
        public let timedMetadataInsertion: TimedMetadataInsertion?

        public init(adAvailOffset: Int? = nil, availBlanking: AvailBlanking? = nil, esam: EsamSettings? = nil, inputs: [Input]? = nil, motionImageInserter: MotionImageInserter? = nil, nielsenConfiguration: NielsenConfiguration? = nil, nielsenNonLinearWatermark: NielsenNonLinearWatermarkSettings? = nil, outputGroups: [OutputGroup]? = nil, timecodeConfig: TimecodeConfig? = nil, timedMetadataInsertion: TimedMetadataInsertion? = nil) {
            self.adAvailOffset = adAvailOffset
            self.availBlanking = availBlanking
            self.esam = esam
            self.inputs = inputs
            self.motionImageInserter = motionImageInserter
            self.nielsenConfiguration = nielsenConfiguration
            self.nielsenNonLinearWatermark = nielsenNonLinearWatermark
            self.outputGroups = outputGroups
            self.timecodeConfig = timecodeConfig
            self.timedMetadataInsertion = timedMetadataInsertion
        }

        public func validate(name: String) throws {
            try self.validate(self.adAvailOffset, name: "adAvailOffset", parent: name, max: 1000)
            try self.validate(self.adAvailOffset, name: "adAvailOffset", parent: name, min: -1000)
            try self.availBlanking?.validate(name: "\(name).availBlanking")
            try self.esam?.validate(name: "\(name).esam")
            try self.inputs?.forEach {
                try $0.validate(name: "\(name).inputs[]")
            }
            try self.motionImageInserter?.validate(name: "\(name).motionImageInserter")
            try self.nielsenConfiguration?.validate(name: "\(name).nielsenConfiguration")
            try self.nielsenNonLinearWatermark?.validate(name: "\(name).nielsenNonLinearWatermark")
            try self.outputGroups?.forEach {
                try $0.validate(name: "\(name).outputGroups[]")
            }
            try self.timecodeConfig?.validate(name: "\(name).timecodeConfig")
            try self.timedMetadataInsertion?.validate(name: "\(name).timedMetadataInsertion")
        }

        private enum CodingKeys: String, CodingKey {
            case adAvailOffset
            case availBlanking
            case esam
            case inputs
            case motionImageInserter
            case nielsenConfiguration
            case nielsenNonLinearWatermark
            case outputGroups
            case timecodeConfig
            case timedMetadataInsertion
        }
    }

    public struct JobTemplate: AWSDecodableShape {
        /// Accelerated transcoding can significantly speed up jobs with long, visually complex content.
        public let accelerationSettings: AccelerationSettings?
        /// An identifier for this resource that is unique within all of AWS.
        public let arn: String?
        /// An optional category you create to organize your job templates.
        public let category: String?
        /// The timestamp in epoch seconds for Job template creation.
        @OptionalCustomCoding<UnixEpochDateCoder>
        public var createdAt: Date?
        /// An optional description you create for each job template.
        public let description: String?
        /// Optional list of hop destinations.
        public let hopDestinations: [HopDestination]?
        /// The timestamp in epoch seconds when the Job template was last updated.
        @OptionalCustomCoding<UnixEpochDateCoder>
        public var lastUpdated: Date?
        /// A name you create for each job template. Each name must be unique within your account.
        public let name: String
        /// Relative priority on the job.
        public let priority: Int?
        /// Optional. The queue that jobs created from this template are assigned to. If you don't specify this, jobs will go to the default queue.
        public let queue: String?
        /// JobTemplateSettings contains all the transcode settings saved in the template that will be applied to jobs created from it.
        public let settings: JobTemplateSettings
        /// Specify how often MediaConvert sends STATUS_UPDATE events to Amazon CloudWatch Events. Set the interval, in seconds, between status updates. MediaConvert sends an update at this interval from the time the service begins processing your job to the time it completes the transcode or encounters an error.
        public let statusUpdateInterval: StatusUpdateInterval?
        /// A job template can be of two types: system or custom. System or built-in job templates can't be modified or deleted by the user.
        public let type: `Type`?

        public init(accelerationSettings: AccelerationSettings? = nil, arn: String? = nil, category: String? = nil, createdAt: Date? = nil, description: String? = nil, hopDestinations: [HopDestination]? = nil, lastUpdated: Date? = nil, name: String, priority: Int? = nil, queue: String? = nil, settings: JobTemplateSettings, statusUpdateInterval: StatusUpdateInterval? = nil, type: `Type`? = nil) {
            self.accelerationSettings = accelerationSettings
            self.arn = arn
            self.category = category
            self.createdAt = createdAt
            self.description = description
            self.hopDestinations = hopDestinations
            self.lastUpdated = lastUpdated
            self.name = name
            self.priority = priority
            self.queue = queue
            self.settings = settings
            self.statusUpdateInterval = statusUpdateInterval
            self.type = type
        }

        private enum CodingKeys: String, CodingKey {
            case accelerationSettings
            case arn
            case category
            case createdAt
            case description
            case hopDestinations
            case lastUpdated
            case name
            case priority
            case queue
            case settings
            case statusUpdateInterval
            case type
        }
    }

    public struct JobTemplateSettings: AWSEncodableShape & AWSDecodableShape {
        /// When specified, this offset (in milliseconds) is added to the input Ad Avail PTS time.
        public let adAvailOffset: Int?
        /// Settings for ad avail blanking.  Video can be blanked or overlaid with an image, and audio muted during SCTE-35 triggered ad avails.
        public let availBlanking: AvailBlanking?
        /// Settings for Event Signaling And Messaging (ESAM).
        public let esam: EsamSettings?
        /// Use Inputs (inputs) to define the source file used in the transcode job. There can only be one input in a job template.  Using the API, you can include multiple inputs when referencing a job template.
        public let inputs: [InputTemplate]?
        /// Overlay motion graphics on top of your video. The motion graphics that you specify here appear on all outputs in all output groups.
        public let motionImageInserter: MotionImageInserter?
        /// Settings for your Nielsen configuration. If you don't do Nielsen measurement and analytics, ignore these settings. When you enable Nielsen configuration (nielsenConfiguration), MediaConvert enables PCM to ID3 tagging for all outputs in the job. To enable Nielsen configuration programmatically, include an instance of nielsenConfiguration in your JSON job specification. Even if you don't include any children of nielsenConfiguration, you still enable the setting.
        public let nielsenConfiguration: NielsenConfiguration?
        /// Ignore these settings unless you are using Nielsen non-linear watermarking. Specify the values that  MediaConvert uses to generate and place Nielsen watermarks in your output audio. In addition to  specifying these values, you also need to set up your cloud TIC server. These settings apply to  every output in your job. The MediaConvert implementation is currently with the following Nielsen versions: Nielsen Watermark SDK Version 5.2.1 Nielsen NLM Watermark Engine Version 1.2.7 Nielsen Watermark Authenticator [SID_TIC] Version [5.0.0]
        public let nielsenNonLinearWatermark: NielsenNonLinearWatermarkSettings?
        /// (OutputGroups) contains one group of settings for each set of outputs that share a common package type. All unpackaged files (MPEG-4, MPEG-2 TS, Quicktime, MXF, and no container) are grouped in a single output group as well. Required in (OutputGroups) is a group of settings that apply to the whole group. This required object depends on the value you set for (Type) under (OutputGroups)>(OutputGroupSettings). Type, settings object pairs are as follows. * FILE_GROUP_SETTINGS, FileGroupSettings * HLS_GROUP_SETTINGS, HlsGroupSettings * DASH_ISO_GROUP_SETTINGS, DashIsoGroupSettings * MS_SMOOTH_GROUP_SETTINGS, MsSmoothGroupSettings * CMAF_GROUP_SETTINGS, CmafGroupSettings
        public let outputGroups: [OutputGroup]?
        /// Contains settings used to acquire and adjust timecode information from inputs.
        public let timecodeConfig: TimecodeConfig?
        /// Enable Timed metadata insertion (TimedMetadataInsertion) to include ID3 tags in any HLS outputs. To include timed metadata, you must enable it here, enable it in each output container, and specify tags and timecodes in ID3 insertion (Id3Insertion) objects.
        public let timedMetadataInsertion: TimedMetadataInsertion?

        public init(adAvailOffset: Int? = nil, availBlanking: AvailBlanking? = nil, esam: EsamSettings? = nil, inputs: [InputTemplate]? = nil, motionImageInserter: MotionImageInserter? = nil, nielsenConfiguration: NielsenConfiguration? = nil, nielsenNonLinearWatermark: NielsenNonLinearWatermarkSettings? = nil, outputGroups: [OutputGroup]? = nil, timecodeConfig: TimecodeConfig? = nil, timedMetadataInsertion: TimedMetadataInsertion? = nil) {
            self.adAvailOffset = adAvailOffset
            self.availBlanking = availBlanking
            self.esam = esam
            self.inputs = inputs
            self.motionImageInserter = motionImageInserter
            self.nielsenConfiguration = nielsenConfiguration
            self.nielsenNonLinearWatermark = nielsenNonLinearWatermark
            self.outputGroups = outputGroups
            self.timecodeConfig = timecodeConfig
            self.timedMetadataInsertion = timedMetadataInsertion
        }

        public func validate(name: String) throws {
            try self.validate(self.adAvailOffset, name: "adAvailOffset", parent: name, max: 1000)
            try self.validate(self.adAvailOffset, name: "adAvailOffset", parent: name, min: -1000)
            try self.availBlanking?.validate(name: "\(name).availBlanking")
            try self.esam?.validate(name: "\(name).esam")
            try self.inputs?.forEach {
                try $0.validate(name: "\(name).inputs[]")
            }
            try self.motionImageInserter?.validate(name: "\(name).motionImageInserter")
            try self.nielsenConfiguration?.validate(name: "\(name).nielsenConfiguration")
            try self.nielsenNonLinearWatermark?.validate(name: "\(name).nielsenNonLinearWatermark")
            try self.outputGroups?.forEach {
                try $0.validate(name: "\(name).outputGroups[]")
            }
            try self.timecodeConfig?.validate(name: "\(name).timecodeConfig")
            try self.timedMetadataInsertion?.validate(name: "\(name).timedMetadataInsertion")
        }

        private enum CodingKeys: String, CodingKey {
            case adAvailOffset
            case availBlanking
            case esam
            case inputs
            case motionImageInserter
            case nielsenConfiguration
            case nielsenNonLinearWatermark
            case outputGroups
            case timecodeConfig
            case timedMetadataInsertion
        }
    }

    public struct ListJobTemplatesRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "category", location: .querystring(locationName: "category")),
            AWSMemberEncoding(label: "listBy", location: .querystring(locationName: "listBy")),
            AWSMemberEncoding(label: "maxResults", location: .querystring(locationName: "maxResults")),
            AWSMemberEncoding(label: "nextToken", location: .querystring(locationName: "nextToken")),
            AWSMemberEncoding(label: "order", location: .querystring(locationName: "order"))
        ]

        /// Optionally, specify a job template category to limit responses to only job templates from that category.
        public let category: String?
        /// Optional. When you request a list of job templates, you can choose to list them alphabetically by NAME or chronologically by CREATION_DATE. If you don't specify, the service will list them by name.
        public let listBy: JobTemplateListBy?
        /// Optional. Number of job templates, up to twenty, that will be returned at one time.
        public let maxResults: Int?
        /// Use this string, provided with the response to a previous request, to request the next batch of job templates.
        public let nextToken: String?
        /// Optional. When you request lists of resources, you can specify whether they are sorted in ASCENDING or DESCENDING order. Default varies by resource.
        public let order: Order?

        public init(category: String? = nil, listBy: JobTemplateListBy? = nil, maxResults: Int? = nil, nextToken: String? = nil, order: Order? = nil) {
            self.category = category
            self.listBy = listBy
            self.maxResults = maxResults
            self.nextToken = nextToken
            self.order = order
        }

        public func validate(name: String) throws {
            try self.validate(self.maxResults, name: "maxResults", parent: name, max: 20)
            try self.validate(self.maxResults, name: "maxResults", parent: name, min: 1)
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct ListJobTemplatesResponse: AWSDecodableShape {
        /// List of Job templates.
        public let jobTemplates: [JobTemplate]?
        /// Use this string to request the next batch of job templates.
        public let nextToken: String?

        public init(jobTemplates: [JobTemplate]? = nil, nextToken: String? = nil) {
            self.jobTemplates = jobTemplates
            self.nextToken = nextToken
        }

        private enum CodingKeys: String, CodingKey {
            case jobTemplates
            case nextToken
        }
    }

    public struct ListJobsRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "maxResults", location: .querystring(locationName: "maxResults")),
            AWSMemberEncoding(label: "nextToken", location: .querystring(locationName: "nextToken")),
            AWSMemberEncoding(label: "order", location: .querystring(locationName: "order")),
            AWSMemberEncoding(label: "queue", location: .querystring(locationName: "queue")),
            AWSMemberEncoding(label: "status", location: .querystring(locationName: "status"))
        ]

        /// Optional. Number of jobs, up to twenty, that will be returned at one time.
        public let maxResults: Int?
        /// Optional. Use this string, provided with the response to a previous request, to request the next batch of jobs.
        public let nextToken: String?
        /// Optional. When you request lists of resources, you can specify whether they are sorted in ASCENDING or DESCENDING order. Default varies by resource.
        public let order: Order?
        /// Optional. Provide a queue name to get back only jobs from that queue.
        public let queue: String?
        /// Optional. A job's status can be SUBMITTED, PROGRESSING, COMPLETE, CANCELED, or ERROR.
        public let status: JobStatus?

        public init(maxResults: Int? = nil, nextToken: String? = nil, order: Order? = nil, queue: String? = nil, status: JobStatus? = nil) {
            self.maxResults = maxResults
            self.nextToken = nextToken
            self.order = order
            self.queue = queue
            self.status = status
        }

        public func validate(name: String) throws {
            try self.validate(self.maxResults, name: "maxResults", parent: name, max: 20)
            try self.validate(self.maxResults, name: "maxResults", parent: name, min: 1)
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct ListJobsResponse: AWSDecodableShape {
        /// List of jobs
        public let jobs: [Job]?
        /// Use this string to request the next batch of jobs.
        public let nextToken: String?

        public init(jobs: [Job]? = nil, nextToken: String? = nil) {
            self.jobs = jobs
            self.nextToken = nextToken
        }

        private enum CodingKeys: String, CodingKey {
            case jobs
            case nextToken
        }
    }

    public struct ListPresetsRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "category", location: .querystring(locationName: "category")),
            AWSMemberEncoding(label: "listBy", location: .querystring(locationName: "listBy")),
            AWSMemberEncoding(label: "maxResults", location: .querystring(locationName: "maxResults")),
            AWSMemberEncoding(label: "nextToken", location: .querystring(locationName: "nextToken")),
            AWSMemberEncoding(label: "order", location: .querystring(locationName: "order"))
        ]

        /// Optionally, specify a preset category to limit responses to only presets from that category.
        public let category: String?
        /// Optional. When you request a list of presets, you can choose to list them alphabetically by NAME or chronologically by CREATION_DATE. If you don't specify, the service will list them by name.
        public let listBy: PresetListBy?
        /// Optional. Number of presets, up to twenty, that will be returned at one time
        public let maxResults: Int?
        /// Use this string, provided with the response to a previous request, to request the next batch of presets.
        public let nextToken: String?
        /// Optional. When you request lists of resources, you can specify whether they are sorted in ASCENDING or DESCENDING order. Default varies by resource.
        public let order: Order?

        public init(category: String? = nil, listBy: PresetListBy? = nil, maxResults: Int? = nil, nextToken: String? = nil, order: Order? = nil) {
            self.category = category
            self.listBy = listBy
            self.maxResults = maxResults
            self.nextToken = nextToken
            self.order = order
        }

        public func validate(name: String) throws {
            try self.validate(self.maxResults, name: "maxResults", parent: name, max: 20)
            try self.validate(self.maxResults, name: "maxResults", parent: name, min: 1)
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct ListPresetsResponse: AWSDecodableShape {
        /// Use this string to request the next batch of presets.
        public let nextToken: String?
        /// List of presets
        public let presets: [Preset]?

        public init(nextToken: String? = nil, presets: [Preset]? = nil) {
            self.nextToken = nextToken
            self.presets = presets
        }

        private enum CodingKeys: String, CodingKey {
            case nextToken
            case presets
        }
    }

    public struct ListQueuesRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "listBy", location: .querystring(locationName: "listBy")),
            AWSMemberEncoding(label: "maxResults", location: .querystring(locationName: "maxResults")),
            AWSMemberEncoding(label: "nextToken", location: .querystring(locationName: "nextToken")),
            AWSMemberEncoding(label: "order", location: .querystring(locationName: "order"))
        ]

        /// Optional. When you request a list of queues, you can choose to list them alphabetically by NAME or chronologically by CREATION_DATE. If you don't specify, the service will list them by creation date.
        public let listBy: QueueListBy?
        /// Optional. Number of queues, up to twenty, that will be returned at one time.
        public let maxResults: Int?
        /// Use this string, provided with the response to a previous request, to request the next batch of queues.
        public let nextToken: String?
        /// Optional. When you request lists of resources, you can specify whether they are sorted in ASCENDING or DESCENDING order. Default varies by resource.
        public let order: Order?

        public init(listBy: QueueListBy? = nil, maxResults: Int? = nil, nextToken: String? = nil, order: Order? = nil) {
            self.listBy = listBy
            self.maxResults = maxResults
            self.nextToken = nextToken
            self.order = order
        }

        public func validate(name: String) throws {
            try self.validate(self.maxResults, name: "maxResults", parent: name, max: 20)
            try self.validate(self.maxResults, name: "maxResults", parent: name, min: 1)
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct ListQueuesResponse: AWSDecodableShape {
        /// Use this string to request the next batch of queues.
        public let nextToken: String?
        /// List of queues.
        public let queues: [Queue]?

        public init(nextToken: String? = nil, queues: [Queue]? = nil) {
            self.nextToken = nextToken
            self.queues = queues
        }

        private enum CodingKeys: String, CodingKey {
            case nextToken
            case queues
        }
    }

    public struct ListTagsForResourceRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "arn", location: .uri(locationName: "arn"))
        ]

        /// The Amazon Resource Name (ARN) of the resource that you want to list tags for. To get the ARN, send a GET request with the resource name.
        public let arn: String

        public init(arn: String) {
            self.arn = arn
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct ListTagsForResourceResponse: AWSDecodableShape {
        /// The Amazon Resource Name (ARN) and tags for an AWS Elemental MediaConvert resource.
        public let resourceTags: ResourceTags?

        public init(resourceTags: ResourceTags? = nil) {
            self.resourceTags = resourceTags
        }

        private enum CodingKeys: String, CodingKey {
            case resourceTags
        }
    }

    public struct M2tsScte35Esam: AWSEncodableShape & AWSDecodableShape {
        /// Packet Identifier (PID) of the SCTE-35 stream in the transport stream generated by ESAM.
        public let scte35EsamPid: Int?

        public init(scte35EsamPid: Int? = nil) {
            self.scte35EsamPid = scte35EsamPid
        }

        public func validate(name: String) throws {
            try self.validate(self.scte35EsamPid, name: "scte35EsamPid", parent: name, max: 8182)
            try self.validate(self.scte35EsamPid, name: "scte35EsamPid", parent: name, min: 32)
        }

        private enum CodingKeys: String, CodingKey {
            case scte35EsamPid
        }
    }

    public struct M2tsSettings: AWSEncodableShape & AWSDecodableShape {
        /// Selects between the DVB and ATSC buffer models for Dolby Digital audio.
        public let audioBufferModel: M2tsAudioBufferModel?
        /// Specify this setting only when your output will be consumed by a downstream repackaging workflow that is sensitive to very small duration differences between video and audio. For this situation, choose Match video duration (MATCH_VIDEO_DURATION). In all other cases, keep the default value, Default codec duration (DEFAULT_CODEC_DURATION). When you choose Match video duration, MediaConvert pads the output audio streams with silence or trims them to ensure that the total duration of each audio stream is at least as long as the total duration of the video stream. After padding or trimming, the audio stream duration is no more than one frame longer than the video stream. MediaConvert applies audio padding or trimming only to the end of the last segment of the output. For unsegmented outputs, MediaConvert adds padding only to the end of the file. When you keep the default value, any minor discrepancies between audio and video duration will depend on your output audio codec.
        public let audioDuration: M2tsAudioDuration?
        /// The number of audio frames to insert for each PES packet.
        public let audioFramesPerPes: Int?
        /// Specify the packet identifiers (PIDs) for any elementary audio streams you include in this output. Specify multiple PIDs as a JSON array. Default is the range 482-492.
        public let audioPids: [Int]?
        /// Specify the output bitrate of the transport stream in bits per second. Setting to 0 lets the muxer automatically determine the appropriate bitrate. Other common values are 3750000, 7500000, and 15000000.
        public let bitrate: Int?
        /// Controls what buffer model to use for accurate interleaving. If set to MULTIPLEX, use multiplex  buffer model. If set to NONE, this can lead to lower latency, but low-memory devices may not be able to play back the stream without interruptions.
        public let bufferModel: M2tsBufferModel?
        /// Inserts DVB Network Information Table (NIT) at the specified table repetition interval.
        public let dvbNitSettings: DvbNitSettings?
        /// Inserts DVB Service Description Table (NIT) at the specified table repetition interval.
        public let dvbSdtSettings: DvbSdtSettings?
        /// Specify the packet identifiers (PIDs) for DVB subtitle data included in this output. Specify multiple PIDs as a JSON array. Default is the range 460-479.
        public let dvbSubPids: [Int]?
        /// Inserts DVB Time and Date Table (TDT) at the specified table repetition interval.
        public let dvbTdtSettings: DvbTdtSettings?
        /// Specify the packet identifier (PID) for DVB teletext data you include in this output. Default is 499.
        public let dvbTeletextPid: Int?
        /// When set to VIDEO_AND_FIXED_INTERVALS, audio EBP markers will be added to partitions 3 and 4. The interval between these additional markers will be fixed, and will be slightly shorter than the video EBP marker interval. When set to VIDEO_INTERVAL, these additional markers will not be inserted. Only applicable when EBP segmentation markers are is selected (segmentationMarkers is EBP or EBP_LEGACY).
        public let ebpAudioInterval: M2tsEbpAudioInterval?
        /// Selects which PIDs to place EBP markers on. They can either be placed only on the video PID, or on both the video PID and all audio PIDs. Only applicable when EBP segmentation markers are is selected (segmentationMarkers is EBP or EBP_LEGACY).
        public let ebpPlacement: M2tsEbpPlacement?
        /// Controls whether to include the ES Rate field in the PES header.
        public let esRateInPes: M2tsEsRateInPes?
        /// Keep the default value (DEFAULT) unless you know that your audio EBP markers are incorrectly appearing before your video EBP markers. To correct this problem, set this value to Force (FORCE).
        public let forceTsVideoEbpOrder: M2tsForceTsVideoEbpOrder?
        /// The length, in seconds, of each fragment. Only used with EBP markers.
        public let fragmentTime: Double?
        /// Specify the maximum time, in milliseconds, between Program Clock References (PCRs) inserted into the transport stream.
        public let maxPcrInterval: Int?
        /// When set, enforces that Encoder Boundary Points do not come within the specified time interval of each other by looking ahead at input video. If another EBP is going to come in within the specified time interval, the current EBP is not emitted, and the segment is "stretched" to the next marker. The lookahead value does not add latency to the system. The Live Event must be configured elsewhere to create sufficient latency to make the lookahead accurate.
        public let minEbpInterval: Int?
        /// If INSERT, Nielsen inaudible tones for media tracking will be detected in the input audio and an equivalent ID3 tag will be inserted in the output.
        public let nielsenId3: M2tsNielsenId3?
        /// Value in bits per second of extra null packets to insert into the transport stream. This can be used if a downstream encryption system requires periodic null packets.
        public let nullPacketBitrate: Double?
        /// The number of milliseconds between instances of this table in the output transport stream.
        public let patInterval: Int?
        /// When set to PCR_EVERY_PES_PACKET, a Program Clock Reference value is inserted for every Packetized Elementary Stream (PES) header. This is effective only when the PCR PID is the same as the video or audio elementary stream.
        public let pcrControl: M2tsPcrControl?
        /// Specify the packet identifier (PID) for the program clock reference (PCR) in this output. If you do not specify a value, the service will use the value for Video PID (VideoPid).
        public let pcrPid: Int?
        /// Specify the number of milliseconds between instances of the program map table (PMT) in the output transport stream.
        public let pmtInterval: Int?
        /// Specify the packet identifier (PID) for the program map table (PMT) itself. Default is 480.
        public let pmtPid: Int?
        /// Specify the packet identifier (PID) of the private metadata stream. Default is 503.
        public let privateMetadataPid: Int?
        /// Use Program number (programNumber) to specify the program number used in the program map table (PMT) for this output. Default is 1. Program numbers and program map tables are parts of MPEG-2 transport stream containers, used for organizing data.
        public let programNumber: Int?
        /// When set to CBR, inserts null packets into transport stream to fill specified bitrate. When set to VBR, the bitrate setting acts as the maximum bitrate, but the output will not be padded up to that bitrate.
        public let rateMode: M2tsRateMode?
        /// Include this in your job settings to put SCTE-35 markers in your HLS and transport stream outputs at the insertion points that you specify in an ESAM XML document. Provide the document in the setting SCC XML (sccXml).
        public let scte35Esam: M2tsScte35Esam?
        /// Specify the packet identifier (PID) of the SCTE-35 stream in the transport stream.
        public let scte35Pid: Int?
        /// For SCTE-35 markers from your input-- Choose Passthrough (PASSTHROUGH) if you want SCTE-35 markers that appear in your input to also appear in this output. Choose None (NONE) if you don't want SCTE-35 markers in this output. For SCTE-35 markers from an ESAM XML document-- Choose None (NONE). Also provide the ESAM XML as a string in the setting Signal processing notification XML (sccXml). Also enable ESAM SCTE-35 (include the property scte35Esam).
        public let scte35Source: M2tsScte35Source?
        /// Inserts segmentation markers at each segmentation_time period. rai_segstart sets the Random Access Indicator bit in the adaptation field. rai_adapt sets the RAI bit and adds the current timecode in the private data bytes. psi_segstart inserts PAT and PMT tables at the start of segments. ebp adds Encoder Boundary Point information to the adaptation field as per OpenCable specification OC-SP-EBP-I01-130118. ebp_legacy adds Encoder Boundary Point information to the adaptation field using a legacy proprietary format.
        public let segmentationMarkers: M2tsSegmentationMarkers?
        /// The segmentation style parameter controls how segmentation markers are inserted into the transport stream. With avails, it is possible that segments may be truncated, which can influence where future segmentation markers are inserted. When a segmentation style of "reset_cadence" is selected and a segment is truncated due to an avail, we will reset the segmentation cadence. This means the subsequent segment will have a duration of of $segmentation_time seconds. When a segmentation style of "maintain_cadence" is selected and a segment is truncated due to an avail, we will not reset the segmentation cadence. This means the subsequent segment will likely be truncated as well. However, all segments after that will have a duration of $segmentation_time seconds. Note that EBP lookahead is a slight exception to this rule.
        public let segmentationStyle: M2tsSegmentationStyle?
        /// Specify the length, in seconds, of each segment. Required unless markers is set to _none_.
        public let segmentationTime: Double?
        /// Specify the packet identifier (PID) for timed metadata in this output. Default is 502.
        public let timedMetadataPid: Int?
        /// Specify the ID for the transport stream itself in the program map table for this output. Transport stream IDs and program map tables are parts of MPEG-2 transport stream containers, used for organizing data.
        public let transportStreamId: Int?
        /// Specify the packet identifier (PID) of the elementary video stream in the transport stream.
        public let videoPid: Int?

        public init(audioBufferModel: M2tsAudioBufferModel? = nil, audioDuration: M2tsAudioDuration? = nil, audioFramesPerPes: Int? = nil, audioPids: [Int]? = nil, bitrate: Int? = nil, bufferModel: M2tsBufferModel? = nil, dvbNitSettings: DvbNitSettings? = nil, dvbSdtSettings: DvbSdtSettings? = nil, dvbSubPids: [Int]? = nil, dvbTdtSettings: DvbTdtSettings? = nil, dvbTeletextPid: Int? = nil, ebpAudioInterval: M2tsEbpAudioInterval? = nil, ebpPlacement: M2tsEbpPlacement? = nil, esRateInPes: M2tsEsRateInPes? = nil, forceTsVideoEbpOrder: M2tsForceTsVideoEbpOrder? = nil, fragmentTime: Double? = nil, maxPcrInterval: Int? = nil, minEbpInterval: Int? = nil, nielsenId3: M2tsNielsenId3? = nil, nullPacketBitrate: Double? = nil, patInterval: Int? = nil, pcrControl: M2tsPcrControl? = nil, pcrPid: Int? = nil, pmtInterval: Int? = nil, pmtPid: Int? = nil, privateMetadataPid: Int? = nil, programNumber: Int? = nil, rateMode: M2tsRateMode? = nil, scte35Esam: M2tsScte35Esam? = nil, scte35Pid: Int? = nil, scte35Source: M2tsScte35Source? = nil, segmentationMarkers: M2tsSegmentationMarkers? = nil, segmentationStyle: M2tsSegmentationStyle? = nil, segmentationTime: Double? = nil, timedMetadataPid: Int? = nil, transportStreamId: Int? = nil, videoPid: Int? = nil) {
            self.audioBufferModel = audioBufferModel
            self.audioDuration = audioDuration
            self.audioFramesPerPes = audioFramesPerPes
            self.audioPids = audioPids
            self.bitrate = bitrate
            self.bufferModel = bufferModel
            self.dvbNitSettings = dvbNitSettings
            self.dvbSdtSettings = dvbSdtSettings
            self.dvbSubPids = dvbSubPids
            self.dvbTdtSettings = dvbTdtSettings
            self.dvbTeletextPid = dvbTeletextPid
            self.ebpAudioInterval = ebpAudioInterval
            self.ebpPlacement = ebpPlacement
            self.esRateInPes = esRateInPes
            self.forceTsVideoEbpOrder = forceTsVideoEbpOrder
            self.fragmentTime = fragmentTime
            self.maxPcrInterval = maxPcrInterval
            self.minEbpInterval = minEbpInterval
            self.nielsenId3 = nielsenId3
            self.nullPacketBitrate = nullPacketBitrate
            self.patInterval = patInterval
            self.pcrControl = pcrControl
            self.pcrPid = pcrPid
            self.pmtInterval = pmtInterval
            self.pmtPid = pmtPid
            self.privateMetadataPid = privateMetadataPid
            self.programNumber = programNumber
            self.rateMode = rateMode
            self.scte35Esam = scte35Esam
            self.scte35Pid = scte35Pid
            self.scte35Source = scte35Source
            self.segmentationMarkers = segmentationMarkers
            self.segmentationStyle = segmentationStyle
            self.segmentationTime = segmentationTime
            self.timedMetadataPid = timedMetadataPid
            self.transportStreamId = transportStreamId
            self.videoPid = videoPid
        }

        public func validate(name: String) throws {
            try self.validate(self.audioFramesPerPes, name: "audioFramesPerPes", parent: name, max: 2_147_483_647)
            try self.validate(self.audioFramesPerPes, name: "audioFramesPerPes", parent: name, min: 0)
            try self.audioPids?.forEach {
                try validate($0, name: "audioPids[]", parent: name, max: 8182)
                try validate($0, name: "audioPids[]", parent: name, min: 32)
            }
            try self.validate(self.bitrate, name: "bitrate", parent: name, max: 2_147_483_647)
            try self.validate(self.bitrate, name: "bitrate", parent: name, min: 0)
            try self.dvbNitSettings?.validate(name: "\(name).dvbNitSettings")
            try self.dvbSdtSettings?.validate(name: "\(name).dvbSdtSettings")
            try self.dvbSubPids?.forEach {
                try validate($0, name: "dvbSubPids[]", parent: name, max: 8182)
                try validate($0, name: "dvbSubPids[]", parent: name, min: 32)
            }
            try self.dvbTdtSettings?.validate(name: "\(name).dvbTdtSettings")
            try self.validate(self.dvbTeletextPid, name: "dvbTeletextPid", parent: name, max: 8182)
            try self.validate(self.dvbTeletextPid, name: "dvbTeletextPid", parent: name, min: 32)
            try self.validate(self.maxPcrInterval, name: "maxPcrInterval", parent: name, max: 500)
            try self.validate(self.maxPcrInterval, name: "maxPcrInterval", parent: name, min: 0)
            try self.validate(self.minEbpInterval, name: "minEbpInterval", parent: name, max: 10000)
            try self.validate(self.minEbpInterval, name: "minEbpInterval", parent: name, min: 0)
            try self.validate(self.patInterval, name: "patInterval", parent: name, max: 1000)
            try self.validate(self.patInterval, name: "patInterval", parent: name, min: 0)
            try self.validate(self.pcrPid, name: "pcrPid", parent: name, max: 8182)
            try self.validate(self.pcrPid, name: "pcrPid", parent: name, min: 32)
            try self.validate(self.pmtInterval, name: "pmtInterval", parent: name, max: 1000)
            try self.validate(self.pmtInterval, name: "pmtInterval", parent: name, min: 0)
            try self.validate(self.pmtPid, name: "pmtPid", parent: name, max: 8182)
            try self.validate(self.pmtPid, name: "pmtPid", parent: name, min: 32)
            try self.validate(self.privateMetadataPid, name: "privateMetadataPid", parent: name, max: 8182)
            try self.validate(self.privateMetadataPid, name: "privateMetadataPid", parent: name, min: 32)
            try self.validate(self.programNumber, name: "programNumber", parent: name, max: 65535)
            try self.validate(self.programNumber, name: "programNumber", parent: name, min: 0)
            try self.scte35Esam?.validate(name: "\(name).scte35Esam")
            try self.validate(self.scte35Pid, name: "scte35Pid", parent: name, max: 8182)
            try self.validate(self.scte35Pid, name: "scte35Pid", parent: name, min: 32)
            try self.validate(self.timedMetadataPid, name: "timedMetadataPid", parent: name, max: 8182)
            try self.validate(self.timedMetadataPid, name: "timedMetadataPid", parent: name, min: 32)
            try self.validate(self.transportStreamId, name: "transportStreamId", parent: name, max: 65535)
            try self.validate(self.transportStreamId, name: "transportStreamId", parent: name, min: 0)
            try self.validate(self.videoPid, name: "videoPid", parent: name, max: 8182)
            try self.validate(self.videoPid, name: "videoPid", parent: name, min: 32)
        }

        private enum CodingKeys: String, CodingKey {
            case audioBufferModel
            case audioDuration
            case audioFramesPerPes
            case audioPids
            case bitrate
            case bufferModel
            case dvbNitSettings
            case dvbSdtSettings
            case dvbSubPids
            case dvbTdtSettings
            case dvbTeletextPid
            case ebpAudioInterval
            case ebpPlacement
            case esRateInPes
            case forceTsVideoEbpOrder
            case fragmentTime
            case maxPcrInterval
            case minEbpInterval
            case nielsenId3
            case nullPacketBitrate
            case patInterval
            case pcrControl
            case pcrPid
            case pmtInterval
            case pmtPid
            case privateMetadataPid
            case programNumber
            case rateMode
            case scte35Esam
            case scte35Pid
            case scte35Source
            case segmentationMarkers
            case segmentationStyle
            case segmentationTime
            case timedMetadataPid
            case transportStreamId
            case videoPid
        }
    }

    public struct M3u8Settings: AWSEncodableShape & AWSDecodableShape {
        /// Specify this setting only when your output will be consumed by a downstream repackaging workflow that is sensitive to very small duration differences between video and audio. For this situation, choose Match video duration (MATCH_VIDEO_DURATION). In all other cases, keep the default value, Default codec duration (DEFAULT_CODEC_DURATION). When you choose Match video duration, MediaConvert pads the output audio streams with silence or trims them to ensure that the total duration of each audio stream is at least as long as the total duration of the video stream. After padding or trimming, the audio stream duration is no more than one frame longer than the video stream. MediaConvert applies audio padding or trimming only to the end of the last segment of the output. For unsegmented outputs, MediaConvert adds padding only to the end of the file. When you keep the default value, any minor discrepancies between audio and video duration will depend on your output audio codec.
        public let audioDuration: M3u8AudioDuration?
        /// The number of audio frames to insert for each PES packet.
        public let audioFramesPerPes: Int?
        /// Packet Identifier (PID) of the elementary audio stream(s) in the transport stream. Multiple values are accepted, and can be entered in ranges and/or by comma separation.
        public let audioPids: [Int]?
        /// If INSERT, Nielsen inaudible tones for media tracking will be detected in the input audio and an equivalent ID3 tag will be inserted in the output.
        public let nielsenId3: M3u8NielsenId3?
        /// The number of milliseconds between instances of this table in the output transport stream.
        public let patInterval: Int?
        /// When set to PCR_EVERY_PES_PACKET a Program Clock Reference value is inserted for every Packetized Elementary Stream (PES) header. This parameter is effective only when the PCR PID is the same as the video or audio elementary stream.
        public let pcrControl: M3u8PcrControl?
        /// Packet Identifier (PID) of the Program Clock Reference (PCR) in the transport stream. When no value is given, the encoder will assign the same value as the Video PID.
        public let pcrPid: Int?
        /// The number of milliseconds between instances of this table in the output transport stream.
        public let pmtInterval: Int?
        /// Packet Identifier (PID) for the Program Map Table (PMT) in the transport stream.
        public let pmtPid: Int?
        /// Packet Identifier (PID) of the private metadata stream in the transport stream.
        public let privateMetadataPid: Int?
        /// The value of the program number field in the Program Map Table.
        public let programNumber: Int?
        /// Packet Identifier (PID) of the SCTE-35 stream in the transport stream.
        public let scte35Pid: Int?
        /// For SCTE-35 markers from your input-- Choose Passthrough (PASSTHROUGH) if you want SCTE-35 markers that appear in your input to also appear in this output. Choose None (NONE) if you don't want SCTE-35 markers in this output. For SCTE-35 markers from an ESAM XML document-- Choose None (NONE) if you don't want manifest conditioning. Choose Passthrough (PASSTHROUGH) and choose Ad markers (adMarkers) if you do want manifest conditioning. In both cases, also provide the ESAM XML as a string in the setting Signal processing notification XML (sccXml).
        public let scte35Source: M3u8Scte35Source?
        /// Applies only to HLS outputs. Use this setting to specify whether the service inserts the ID3 timed metadata from the input in this output.
        public let timedMetadata: TimedMetadata?
        /// Packet Identifier (PID) of the timed metadata stream in the transport stream.
        public let timedMetadataPid: Int?
        /// The value of the transport stream ID field in the Program Map Table.
        public let transportStreamId: Int?
        /// Packet Identifier (PID) of the elementary video stream in the transport stream.
        public let videoPid: Int?

        public init(audioDuration: M3u8AudioDuration? = nil, audioFramesPerPes: Int? = nil, audioPids: [Int]? = nil, nielsenId3: M3u8NielsenId3? = nil, patInterval: Int? = nil, pcrControl: M3u8PcrControl? = nil, pcrPid: Int? = nil, pmtInterval: Int? = nil, pmtPid: Int? = nil, privateMetadataPid: Int? = nil, programNumber: Int? = nil, scte35Pid: Int? = nil, scte35Source: M3u8Scte35Source? = nil, timedMetadata: TimedMetadata? = nil, timedMetadataPid: Int? = nil, transportStreamId: Int? = nil, videoPid: Int? = nil) {
            self.audioDuration = audioDuration
            self.audioFramesPerPes = audioFramesPerPes
            self.audioPids = audioPids
            self.nielsenId3 = nielsenId3
            self.patInterval = patInterval
            self.pcrControl = pcrControl
            self.pcrPid = pcrPid
            self.pmtInterval = pmtInterval
            self.pmtPid = pmtPid
            self.privateMetadataPid = privateMetadataPid
            self.programNumber = programNumber
            self.scte35Pid = scte35Pid
            self.scte35Source = scte35Source
            self.timedMetadata = timedMetadata
            self.timedMetadataPid = timedMetadataPid
            self.transportStreamId = transportStreamId
            self.videoPid = videoPid
        }

        public func validate(name: String) throws {
            try self.validate(self.audioFramesPerPes, name: "audioFramesPerPes", parent: name, max: 2_147_483_647)
            try self.validate(self.audioFramesPerPes, name: "audioFramesPerPes", parent: name, min: 0)
            try self.audioPids?.forEach {
                try validate($0, name: "audioPids[]", parent: name, max: 8182)
                try validate($0, name: "audioPids[]", parent: name, min: 32)
            }
            try self.validate(self.patInterval, name: "patInterval", parent: name, max: 1000)
            try self.validate(self.patInterval, name: "patInterval", parent: name, min: 0)
            try self.validate(self.pcrPid, name: "pcrPid", parent: name, max: 8182)
            try self.validate(self.pcrPid, name: "pcrPid", parent: name, min: 32)
            try self.validate(self.pmtInterval, name: "pmtInterval", parent: name, max: 1000)
            try self.validate(self.pmtInterval, name: "pmtInterval", parent: name, min: 0)
            try self.validate(self.pmtPid, name: "pmtPid", parent: name, max: 8182)
            try self.validate(self.pmtPid, name: "pmtPid", parent: name, min: 32)
            try self.validate(self.privateMetadataPid, name: "privateMetadataPid", parent: name, max: 8182)
            try self.validate(self.privateMetadataPid, name: "privateMetadataPid", parent: name, min: 32)
            try self.validate(self.programNumber, name: "programNumber", parent: name, max: 65535)
            try self.validate(self.programNumber, name: "programNumber", parent: name, min: 0)
            try self.validate(self.scte35Pid, name: "scte35Pid", parent: name, max: 8182)
            try self.validate(self.scte35Pid, name: "scte35Pid", parent: name, min: 32)
            try self.validate(self.timedMetadataPid, name: "timedMetadataPid", parent: name, max: 8182)
            try self.validate(self.timedMetadataPid, name: "timedMetadataPid", parent: name, min: 32)
            try self.validate(self.transportStreamId, name: "transportStreamId", parent: name, max: 65535)
            try self.validate(self.transportStreamId, name: "transportStreamId", parent: name, min: 0)
            try self.validate(self.videoPid, name: "videoPid", parent: name, max: 8182)
            try self.validate(self.videoPid, name: "videoPid", parent: name, min: 32)
        }

        private enum CodingKeys: String, CodingKey {
            case audioDuration
            case audioFramesPerPes
            case audioPids
            case nielsenId3
            case patInterval
            case pcrControl
            case pcrPid
            case pmtInterval
            case pmtPid
            case privateMetadataPid
            case programNumber
            case scte35Pid
            case scte35Source
            case timedMetadata
            case timedMetadataPid
            case transportStreamId
            case videoPid
        }
    }

    public struct MotionImageInserter: AWSEncodableShape & AWSDecodableShape {
        /// If your motion graphic asset is a .mov file, keep this setting unspecified. If your motion graphic asset is a series of .png files, specify the frame rate of the overlay in frames per second, as a fraction. For example, specify 24 fps as 24/1. Make sure that the number of images in your series matches the frame rate and your intended overlay duration. For example, if you want a 30-second overlay at 30 fps, you should have 900 .png images. This overlay frame rate doesn't need to match the frame rate of the underlying video.
        public let framerate: MotionImageInsertionFramerate?
        /// Specify the .mov file or series of .png files that you want to overlay on your video. For .png files, provide the file name of the first file in the series. Make sure that the names of the .png files end with sequential numbers that specify the order that they are played in. For example, overlay_000.png, overlay_001.png, overlay_002.png, and so on. The sequence must start at zero, and each image file name must have the same number of digits. Pad your initial file names with enough zeros to complete the sequence. For example, if the first image is overlay_0.png, there can be only 10 images in the sequence, with the last image being overlay_9.png. But if the first image is overlay_00.png, there can be 100 images in the sequence.
        public let input: String?
        /// Choose the type of motion graphic asset that you are providing for your overlay. You can choose either a .mov file or a series of .png files.
        public let insertionMode: MotionImageInsertionMode?
        /// Use Offset to specify the placement of your motion graphic overlay on the video frame. Specify in pixels, from the upper-left corner of the frame. If you don't specify an offset, the service scales your overlay to the full size of the frame. Otherwise, the service inserts the overlay at its native resolution and scales the size up or down with any video scaling.
        public let offset: MotionImageInsertionOffset?
        /// Specify whether your motion graphic overlay repeats on a loop or plays only once.
        public let playback: MotionImagePlayback?
        /// Specify when the motion overlay begins. Use timecode format (HH:MM:SS:FF or HH:MM:SS;FF). Make sure that the timecode you provide here takes into account how you have set up your timecode configuration under both job settings and input settings. The simplest way to do that is to set both to start at 0. If you need to set up your job to follow timecodes embedded in your source that don't start at zero, make sure that you specify a start time that is after the first embedded timecode. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/setting-up-timecode.html Find job-wide and input timecode configuration settings in your JSON job settings specification at settings>timecodeConfig>source and settings>inputs>timecodeSource.
        public let startTime: String?

        public init(framerate: MotionImageInsertionFramerate? = nil, input: String? = nil, insertionMode: MotionImageInsertionMode? = nil, offset: MotionImageInsertionOffset? = nil, playback: MotionImagePlayback? = nil, startTime: String? = nil) {
            self.framerate = framerate
            self.input = input
            self.insertionMode = insertionMode
            self.offset = offset
            self.playback = playback
            self.startTime = startTime
        }

        public func validate(name: String) throws {
            try self.framerate?.validate(name: "\(name).framerate")
            try self.validate(self.input, name: "input", parent: name, min: 14)
            try self.validate(self.input, name: "input", parent: name, pattern: "^((s3://(.*)(\\.mov|[0-9]+\\.png))|(https?://(.*)(\\.mov|[0-9]+\\.png)(\\?([^&=]+=[^&]+&)*[^&=]+=[^&]+)?))$")
            try self.offset?.validate(name: "\(name).offset")
            try self.validate(self.startTime, name: "startTime", parent: name, max: 11)
            try self.validate(self.startTime, name: "startTime", parent: name, min: 11)
            try self.validate(self.startTime, name: "startTime", parent: name, pattern: "^((([0-1]\\d)|(2[0-3]))(:[0-5]\\d){2}([:;][0-5]\\d))$")
        }

        private enum CodingKeys: String, CodingKey {
            case framerate
            case input
            case insertionMode
            case offset
            case playback
            case startTime
        }
    }

    public struct MotionImageInsertionFramerate: AWSEncodableShape & AWSDecodableShape {
        /// The bottom of the fraction that expresses your overlay frame rate. For example, if your frame rate is 24 fps, set this value to 1.
        public let framerateDenominator: Int?
        /// The top of the fraction that expresses your overlay frame rate. For example, if your frame rate is 24 fps, set this value to 24.
        public let framerateNumerator: Int?

        public init(framerateDenominator: Int? = nil, framerateNumerator: Int? = nil) {
            self.framerateDenominator = framerateDenominator
            self.framerateNumerator = framerateNumerator
        }

        public func validate(name: String) throws {
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, max: 17_895_697)
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, min: 1)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, max: 2_147_483_640)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case framerateDenominator
            case framerateNumerator
        }
    }

    public struct MotionImageInsertionOffset: AWSEncodableShape & AWSDecodableShape {
        /// Set the distance, in pixels, between the overlay and the left edge of the video frame.
        public let imageX: Int?
        /// Set the distance, in pixels, between the overlay and the top edge of the video frame.
        public let imageY: Int?

        public init(imageX: Int? = nil, imageY: Int? = nil) {
            self.imageX = imageX
            self.imageY = imageY
        }

        public func validate(name: String) throws {
            try self.validate(self.imageX, name: "imageX", parent: name, max: 2_147_483_647)
            try self.validate(self.imageX, name: "imageX", parent: name, min: 0)
            try self.validate(self.imageY, name: "imageY", parent: name, max: 2_147_483_647)
            try self.validate(self.imageY, name: "imageY", parent: name, min: 0)
        }

        private enum CodingKeys: String, CodingKey {
            case imageX
            case imageY
        }
    }

    public struct MovSettings: AWSEncodableShape & AWSDecodableShape {
        /// When enabled, include 'clap' atom if appropriate for the video output settings.
        public let clapAtom: MovClapAtom?
        /// When enabled, file composition times will start at zero, composition times in the 'ctts' (composition time to sample) box for B-frames will be negative, and a 'cslg' (composition shift least greatest) box will be included per 14496-1 amendment 1. This improves compatibility with Apple players and tools.
        public let cslgAtom: MovCslgAtom?
        /// When set to XDCAM, writes MPEG2 video streams into the QuickTime file using XDCAM fourcc codes. This increases compatibility with Apple editors and players, but may decrease compatibility with other players. Only applicable when the video codec is MPEG2.
        public let mpeg2FourCCControl: MovMpeg2FourCCControl?
        /// To make this output compatible with Omenon, keep the default value, OMNEON. Unless you need Omneon compatibility, set this value to NONE. When you keep the default value, OMNEON, MediaConvert increases the length of the edit list atom. This might cause file rejections when a recipient of the output file doesn't expct this extra padding.
        public let paddingControl: MovPaddingControl?
        /// Always keep the default value (SELF_CONTAINED) for this setting.
        public let reference: MovReference?

        public init(clapAtom: MovClapAtom? = nil, cslgAtom: MovCslgAtom? = nil, mpeg2FourCCControl: MovMpeg2FourCCControl? = nil, paddingControl: MovPaddingControl? = nil, reference: MovReference? = nil) {
            self.clapAtom = clapAtom
            self.cslgAtom = cslgAtom
            self.mpeg2FourCCControl = mpeg2FourCCControl
            self.paddingControl = paddingControl
            self.reference = reference
        }

        private enum CodingKeys: String, CodingKey {
            case clapAtom
            case cslgAtom
            case mpeg2FourCCControl
            case paddingControl
            case reference
        }
    }

    public struct Mp2Settings: AWSEncodableShape & AWSDecodableShape {
        /// Specify the average bitrate in bits per second.
        public let bitrate: Int?
        /// Set Channels to specify the number of channels in this output audio track. Choosing Mono in the console will give you 1 output channel; choosing Stereo will give you 2. In the API, valid values are 1 and 2.
        public let channels: Int?
        /// Sample rate in hz.
        public let sampleRate: Int?

        public init(bitrate: Int? = nil, channels: Int? = nil, sampleRate: Int? = nil) {
            self.bitrate = bitrate
            self.channels = channels
            self.sampleRate = sampleRate
        }

        public func validate(name: String) throws {
            try self.validate(self.bitrate, name: "bitrate", parent: name, max: 384_000)
            try self.validate(self.bitrate, name: "bitrate", parent: name, min: 32000)
            try self.validate(self.channels, name: "channels", parent: name, max: 2)
            try self.validate(self.channels, name: "channels", parent: name, min: 1)
            try self.validate(self.sampleRate, name: "sampleRate", parent: name, max: 48000)
            try self.validate(self.sampleRate, name: "sampleRate", parent: name, min: 32000)
        }

        private enum CodingKeys: String, CodingKey {
            case bitrate
            case channels
            case sampleRate
        }
    }

    public struct Mp3Settings: AWSEncodableShape & AWSDecodableShape {
        /// Specify the average bitrate in bits per second.
        public let bitrate: Int?
        /// Specify the number of channels in this output audio track. Choosing Mono on the console gives you 1 output channel; choosing Stereo gives you 2. In the API, valid values are 1 and 2.
        public let channels: Int?
        /// Specify whether the service encodes this MP3 audio output with a constant bitrate (CBR) or a variable bitrate (VBR).
        public let rateControlMode: Mp3RateControlMode?
        /// Sample rate in hz.
        public let sampleRate: Int?
        /// Required when you set Bitrate control mode (rateControlMode) to VBR. Specify the audio quality of this MP3 output from 0 (highest quality) to 9 (lowest quality).
        public let vbrQuality: Int?

        public init(bitrate: Int? = nil, channels: Int? = nil, rateControlMode: Mp3RateControlMode? = nil, sampleRate: Int? = nil, vbrQuality: Int? = nil) {
            self.bitrate = bitrate
            self.channels = channels
            self.rateControlMode = rateControlMode
            self.sampleRate = sampleRate
            self.vbrQuality = vbrQuality
        }

        public func validate(name: String) throws {
            try self.validate(self.bitrate, name: "bitrate", parent: name, max: 320_000)
            try self.validate(self.bitrate, name: "bitrate", parent: name, min: 16000)
            try self.validate(self.channels, name: "channels", parent: name, max: 2)
            try self.validate(self.channels, name: "channels", parent: name, min: 1)
            try self.validate(self.sampleRate, name: "sampleRate", parent: name, max: 48000)
            try self.validate(self.sampleRate, name: "sampleRate", parent: name, min: 22050)
            try self.validate(self.vbrQuality, name: "vbrQuality", parent: name, max: 9)
            try self.validate(self.vbrQuality, name: "vbrQuality", parent: name, min: 0)
        }

        private enum CodingKeys: String, CodingKey {
            case bitrate
            case channels
            case rateControlMode
            case sampleRate
            case vbrQuality
        }
    }

    public struct Mp4Settings: AWSEncodableShape & AWSDecodableShape {
        /// Specify this setting only when your output will be consumed by a downstream repackaging workflow that is sensitive to very small duration differences between video and audio. For this situation, choose Match video duration (MATCH_VIDEO_DURATION). In all other cases, keep the default value, Default codec duration (DEFAULT_CODEC_DURATION). When you choose Match video duration, MediaConvert pads the output audio streams with silence or trims them to ensure that the total duration of each audio stream is at least as long as the total duration of the video stream. After padding or trimming, the audio stream duration is no more than one frame longer than the video stream. MediaConvert applies audio padding or trimming only to the end of the last segment of the output. For unsegmented outputs, MediaConvert adds padding only to the end of the file. When you keep the default value, any minor discrepancies between audio and video duration will depend on your output audio codec.
        public let audioDuration: CmfcAudioDuration?
        /// When enabled, file composition times will start at zero, composition times in the 'ctts' (composition time to sample) box for B-frames will be negative, and a 'cslg' (composition shift least greatest) box will be included per 14496-1 amendment 1. This improves compatibility with Apple players and tools.
        public let cslgAtom: Mp4CslgAtom?
        /// Ignore this setting unless compliance to the CTTS box version specification matters in your workflow. Specify a value of 1 to set your CTTS box version to 1 and make your output compliant with the specification. When you specify a value of 1, you must also set CSLG atom (cslgAtom) to the value INCLUDE. Keep the default value 0 to set your CTTS box version to 0. This can provide backward compatibility for some players and packagers.
        public let cttsVersion: Int?
        /// Inserts a free-space box immediately after the moov box.
        public let freeSpaceBox: Mp4FreeSpaceBox?
        /// If set to PROGRESSIVE_DOWNLOAD, the MOOV atom is relocated to the beginning of the archive as required for progressive downloading. Otherwise it is placed normally at the end.
        public let moovPlacement: Mp4MoovPlacement?
        /// Overrides the "Major Brand" field in the output file. Usually not necessary to specify.
        public let mp4MajorBrand: String?

        public init(audioDuration: CmfcAudioDuration? = nil, cslgAtom: Mp4CslgAtom? = nil, cttsVersion: Int? = nil, freeSpaceBox: Mp4FreeSpaceBox? = nil, moovPlacement: Mp4MoovPlacement? = nil, mp4MajorBrand: String? = nil) {
            self.audioDuration = audioDuration
            self.cslgAtom = cslgAtom
            self.cttsVersion = cttsVersion
            self.freeSpaceBox = freeSpaceBox
            self.moovPlacement = moovPlacement
            self.mp4MajorBrand = mp4MajorBrand
        }

        public func validate(name: String) throws {
            try self.validate(self.cttsVersion, name: "cttsVersion", parent: name, max: 1)
            try self.validate(self.cttsVersion, name: "cttsVersion", parent: name, min: 0)
        }

        private enum CodingKeys: String, CodingKey {
            case audioDuration
            case cslgAtom
            case cttsVersion
            case freeSpaceBox
            case moovPlacement
            case mp4MajorBrand
        }
    }

    public struct MpdSettings: AWSEncodableShape & AWSDecodableShape {
        /// Optional. Choose Include (INCLUDE) to have MediaConvert mark up your DASH manifest with  elements for embedded 608 captions. This markup isn't generally required, but some video players require it to discover and play embedded 608 captions. Keep the default value, Exclude (EXCLUDE), to leave these elements out. When you enable this setting, this is the markup that MediaConvert includes in your manifest:
        public let accessibilityCaptionHints: MpdAccessibilityCaptionHints?
        /// Specify this setting only when your output will be consumed by a downstream repackaging workflow that is sensitive to very small duration differences between video and audio. For this situation, choose Match video duration (MATCH_VIDEO_DURATION). In all other cases, keep the default value, Default codec duration (DEFAULT_CODEC_DURATION). When you choose Match video duration, MediaConvert pads the output audio streams with silence or trims them to ensure that the total duration of each audio stream is at least as long as the total duration of the video stream. After padding or trimming, the audio stream duration is no more than one frame longer than the video stream. MediaConvert applies audio padding or trimming only to the end of the last segment of the output. For unsegmented outputs, MediaConvert adds padding only to the end of the file. When you keep the default value, any minor discrepancies between audio and video duration will depend on your output audio codec.
        public let audioDuration: MpdAudioDuration?
        /// Use this setting only in DASH output groups that include sidecar TTML or IMSC captions.  You specify sidecar captions in a separate output from your audio and video. Choose Raw (RAW) for captions in a single XML file in a raw container. Choose Fragmented MPEG-4 (FRAGMENTED_MP4) for captions in XML format contained within fragmented MP4 files. This set of fragmented MP4 files is separate from your video and audio fragmented MP4 files.
        public let captionContainerType: MpdCaptionContainerType?
        /// Use this setting only when you specify SCTE-35 markers from ESAM. Choose INSERT to put SCTE-35 markers in this output at the insertion points that you specify in an ESAM XML document. Provide the document in the setting SCC XML (sccXml).
        public let scte35Esam: MpdScte35Esam?
        /// Ignore this setting unless you have SCTE-35 markers in your input video file. Choose Passthrough (PASSTHROUGH) if you want SCTE-35 markers that appear in your input to also appear in this output. Choose None (NONE) if you don't want those SCTE-35 markers in this output.
        public let scte35Source: MpdScte35Source?

        public init(accessibilityCaptionHints: MpdAccessibilityCaptionHints? = nil, audioDuration: MpdAudioDuration? = nil, captionContainerType: MpdCaptionContainerType? = nil, scte35Esam: MpdScte35Esam? = nil, scte35Source: MpdScte35Source? = nil) {
            self.accessibilityCaptionHints = accessibilityCaptionHints
            self.audioDuration = audioDuration
            self.captionContainerType = captionContainerType
            self.scte35Esam = scte35Esam
            self.scte35Source = scte35Source
        }

        private enum CodingKeys: String, CodingKey {
            case accessibilityCaptionHints
            case audioDuration
            case captionContainerType
            case scte35Esam
            case scte35Source
        }
    }

    public struct Mpeg2Settings: AWSEncodableShape & AWSDecodableShape {
        /// Specify the strength of any adaptive quantization filters that you enable. The value that you choose here applies to the following settings: Spatial adaptive quantization (spatialAdaptiveQuantization), and Temporal adaptive quantization (temporalAdaptiveQuantization).
        public let adaptiveQuantization: Mpeg2AdaptiveQuantization?
        /// Specify the average bitrate in bits per second. Required for VBR and CBR. For MS Smooth outputs, bitrates must be unique when rounded down to the nearest multiple of 1000.
        public let bitrate: Int?
        /// Use Level (Mpeg2CodecLevel) to set the MPEG-2 level for the video output.
        public let codecLevel: Mpeg2CodecLevel?
        /// Use Profile (Mpeg2CodecProfile) to set the MPEG-2 profile for the video output.
        public let codecProfile: Mpeg2CodecProfile?
        /// Choose Adaptive to improve subjective video quality for high-motion content. This will cause the service to use fewer B-frames (which infer information based on other frames) for high-motion portions of the video and more B-frames for low-motion portions. The maximum number of B-frames is limited by the value you provide for the setting B frames between reference frames (numberBFramesBetweenReferenceFrames).
        public let dynamicSubGop: Mpeg2DynamicSubGop?
        /// If you are using the console, use the Framerate setting to specify the frame rate for this output. If you want to keep the same frame rate as the input video, choose Follow source. If you want to do frame rate conversion, choose a frame rate from the dropdown list or choose Custom. The framerates shown in the dropdown list are decimal approximations of fractions. If you choose Custom, specify your frame rate as a fraction. If you are creating your transcoding job specification as a JSON file without the console, use FramerateControl to specify which value the service uses for the frame rate for this output. Choose INITIALIZE_FROM_SOURCE if you want the service to use the frame rate from the input. Choose SPECIFIED if you want the service to use the frame rate you specify in the settings FramerateNumerator and FramerateDenominator.
        public let framerateControl: Mpeg2FramerateControl?
        /// Choose the method that you want MediaConvert to use when increasing or decreasing the frame rate. We recommend using drop duplicate (DUPLICATE_DROP) for numerically simple conversions, such as 60 fps to 30 fps. For numerically complex conversions, you can use interpolate (INTERPOLATE) to avoid stutter. This results in a smooth picture, but might introduce undesirable video artifacts. For complex frame rate conversions, especially if your source video has already been converted from its original cadence, use FrameFormer (FRAMEFORMER) to do motion-compensated interpolation. FrameFormer chooses the best conversion method frame by frame. Note that using FrameFormer increases the transcoding time and incurs a significant add-on cost.
        public let framerateConversionAlgorithm: Mpeg2FramerateConversionAlgorithm?
        /// When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example,  24000 / 1001 = 23.976 fps. Use FramerateDenominator to specify the denominator of this fraction. In this example, use 1001 for the value of FramerateDenominator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
        public let framerateDenominator: Int?
        /// When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example,  24000 / 1001 = 23.976 fps. Use FramerateNumerator to specify the numerator of this fraction. In this example, use 24000 for the value of FramerateNumerator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
        public let framerateNumerator: Int?
        /// Frequency of closed GOPs. In streaming applications, it is recommended that this be set to 1 so a decoder joining mid-stream will receive an IDR frame as quickly as possible. Setting this value to 0 will break output segmenting.
        public let gopClosedCadence: Int?
        /// GOP Length (keyframe interval) in frames or seconds. Must be greater than zero.
        public let gopSize: Double?
        /// Indicates if the GOP Size in MPEG2 is specified in frames or seconds. If seconds the system will convert the GOP Size into a frame count at run time.
        public let gopSizeUnits: Mpeg2GopSizeUnits?
        /// Percentage of the buffer that should initially be filled (HRD buffer model).
        public let hrdBufferInitialFillPercentage: Int?
        /// Size of buffer (HRD buffer model) in bits. For example, enter five megabits as 5000000.
        public let hrdBufferSize: Int?
        /// Choose the scan line type for the output. Keep the default value, Progressive (PROGRESSIVE) to create a progressive output, regardless of the scan type of your input. Use Top field first (TOP_FIELD) or Bottom field first (BOTTOM_FIELD) to create an output that's interlaced with the same field polarity throughout. Use Follow, default top (FOLLOW_TOP_FIELD) or Follow, default bottom (FOLLOW_BOTTOM_FIELD) to produce outputs with the same field polarity as the source. For jobs that have multiple inputs, the output field polarity might change over the course of the output. Follow behavior depends on the input scan type. If the source is interlaced, the output will be interlaced with the same polarity as the source. If the source is progressive, the output will be interlaced with top field bottom field first, depending on which of the Follow options you choose.
        public let interlaceMode: Mpeg2InterlaceMode?
        /// Use Intra DC precision (Mpeg2IntraDcPrecision) to set quantization precision for intra-block DC coefficients. If you choose the value auto, the service will automatically select the precision based on the per-frame compression ratio.
        public let intraDcPrecision: Mpeg2IntraDcPrecision?
        /// Maximum bitrate in bits/second. For example, enter five megabits per second as 5000000.
        public let maxBitrate: Int?
        /// Enforces separation between repeated (cadence) I-frames and I-frames inserted by Scene Change Detection. If a scene change I-frame is within I-interval frames of a cadence I-frame, the GOP is shrunk and/or stretched to the scene change I-frame. GOP stretch requires enabling lookahead as well as setting I-interval. The normal cadence resumes for the next GOP. This setting is only used when Scene Change Detect is enabled. Note: Maximum GOP stretch = GOP size + Min-I-interval - 1
        public let minIInterval: Int?
        /// Number of B-frames between reference frames.
        public let numberBFramesBetweenReferenceFrames: Int?
        /// Optional. Specify how the service determines the pixel aspect ratio (PAR) for this output. The default behavior, Follow source (INITIALIZE_FROM_SOURCE), uses the PAR from your input video for your output. To specify a different PAR in the console, choose any value other than Follow source. To specify a different PAR by editing the JSON job specification, choose SPECIFIED. When you choose SPECIFIED for this setting, you must also specify values for the parNumerator and parDenominator settings.
        public let parControl: Mpeg2ParControl?
        /// Required when you set Pixel aspect ratio (parControl) to SPECIFIED. On the console, this corresponds to any value other than Follow source. When you specify an output pixel aspect ratio (PAR) that is different from your input video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC widescreen, you would specify the ratio 40:33. In this example, the value for parDenominator is 33.
        public let parDenominator: Int?
        /// Required when you set Pixel aspect ratio (parControl) to SPECIFIED. On the console, this corresponds to any value other than Follow source. When you specify an output pixel aspect ratio (PAR) that is different from your input video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC widescreen, you would specify the ratio 40:33. In this example, the value for parNumerator is 40.
        public let parNumerator: Int?
        /// Optional. Use Quality tuning level (qualityTuningLevel) to choose how you want to trade off encoding speed for output video quality. The default behavior is faster, lower quality, single-pass encoding.
        public let qualityTuningLevel: Mpeg2QualityTuningLevel?
        /// Use Rate control mode (Mpeg2RateControlMode) to specify whether the bitrate is variable (vbr) or constant (cbr).
        public let rateControlMode: Mpeg2RateControlMode?
        /// Use this setting for interlaced outputs, when your output frame rate is half of your input frame rate. In this situation, choose Optimized interlacing (INTERLACED_OPTIMIZE) to create a better quality interlaced output. In this case, each progressive frame from the input corresponds to an interlaced field in the output. Keep the default value, Basic interlacing (INTERLACED), for all other output frame rates. With basic interlacing, MediaConvert performs any frame rate conversion first and then interlaces the frames. When you choose Optimized interlacing and you set your output frame rate to a value that isn't suitable for optimized interlacing, MediaConvert automatically falls back to basic interlacing. Required settings: To use optimized interlacing, you must set Telecine (telecine) to None (NONE) or Soft (SOFT). You can't use optimized interlacing for hard telecine outputs. You must also set Interlace mode (interlaceMode) to a value other than Progressive (PROGRESSIVE).
        public let scanTypeConversionMode: Mpeg2ScanTypeConversionMode?
        /// Enable this setting to insert I-frames at scene changes that the service automatically detects. This improves video quality and is enabled by default.
        public let sceneChangeDetect: Mpeg2SceneChangeDetect?
        /// Ignore this setting unless your input frame rate is 23.976 or 24 frames per second (fps). Enable slow PAL to create a 25 fps output. When you enable slow PAL, MediaConvert relabels the video frames to 25 fps and resamples your audio to keep it synchronized with the video. Note that enabling this setting will slightly reduce the duration of your video. Required settings: You must also set Framerate to 25. In your JSON job specification, set (framerateControl) to (SPECIFIED), (framerateNumerator) to 25 and (framerateDenominator) to 1.
        public let slowPal: Mpeg2SlowPal?
        /// Ignore this setting unless you need to comply with a specification that requires a specific value. If you don't have a specification requirement, we recommend that you adjust the softness of your output by using a lower value for the setting Sharpness (sharpness) or by enabling a noise reducer filter (noiseReducerFilter). The Softness (softness) setting specifies the quantization matrices that the encoder uses. Keep the default value, 0, to use the AWS Elemental default matrices. Choose a value from 17 to 128 to use planar interpolation. Increasing values from 17 to 128 result in increasing reduction of high-frequency data. The value 128 results in the softest video.
        public let softness: Int?
        /// Keep the default value, Enabled (ENABLED), to adjust quantization within each frame based on spatial variation of content complexity. When you enable this feature, the encoder uses fewer bits on areas that can sustain more distortion with no noticeable visual degradation and uses more bits on areas where any small distortion will be noticeable. For example, complex textured blocks are encoded with fewer bits and smooth textured blocks are encoded with more bits. Enabling this feature will almost always improve your video quality. Note, though, that this feature doesn't take into account where the viewer's attention is likely to be. If viewers are likely to be focusing their attention on a part of the screen with a lot of complex texture, you might choose to disable this feature. Related setting: When you enable spatial adaptive quantization, set the value for Adaptive quantization (adaptiveQuantization) depending on your content. For homogeneous content, such as cartoons and video games, set it to Low. For content with a wider variety of textures, set it to High or Higher.
        public let spatialAdaptiveQuantization: Mpeg2SpatialAdaptiveQuantization?
        /// Specify whether this output's video uses the D10 syntax. Keep the default value to  not use the syntax. Related settings: When you choose D10 (D_10) for your MXF  profile (profile), you must also set this value to to D10 (D_10).
        public let syntax: Mpeg2Syntax?
        /// When you do frame rate conversion from 23.976 frames per second (fps) to 29.97 fps, and your output scan type is interlaced, you can optionally enable hard or soft telecine to create a smoother picture. Hard telecine (HARD) produces a 29.97i output. Soft telecine (SOFT) produces an output with a 23.976 output that signals to the video player device to do the conversion during play back. When you keep the default value, None (NONE), MediaConvert does a standard frame rate conversion to 29.97 without doing anything with the field polarity to create a smoother picture.
        public let telecine: Mpeg2Telecine?
        /// Keep the default value, Enabled (ENABLED), to adjust quantization within each frame based on temporal variation of content complexity. When you enable this feature, the encoder uses fewer bits on areas of the frame that aren't moving and uses more bits on complex objects with sharp edges that move a lot. For example, this feature improves the readability of text tickers on newscasts and scoreboards on sports matches. Enabling this feature will almost always improve your video quality. Note, though, that this feature doesn't take into account where the viewer's attention is likely to be. If viewers are likely to be focusing their attention on a part of the screen that doesn't have moving objects with sharp edges, such as sports athletes' faces, you might choose to disable this feature. Related setting: When you enable temporal quantization, adjust the strength of the filter with the setting Adaptive quantization (adaptiveQuantization).
        public let temporalAdaptiveQuantization: Mpeg2TemporalAdaptiveQuantization?

        public init(adaptiveQuantization: Mpeg2AdaptiveQuantization? = nil, bitrate: Int? = nil, codecLevel: Mpeg2CodecLevel? = nil, codecProfile: Mpeg2CodecProfile? = nil, dynamicSubGop: Mpeg2DynamicSubGop? = nil, framerateControl: Mpeg2FramerateControl? = nil, framerateConversionAlgorithm: Mpeg2FramerateConversionAlgorithm? = nil, framerateDenominator: Int? = nil, framerateNumerator: Int? = nil, gopClosedCadence: Int? = nil, gopSize: Double? = nil, gopSizeUnits: Mpeg2GopSizeUnits? = nil, hrdBufferInitialFillPercentage: Int? = nil, hrdBufferSize: Int? = nil, interlaceMode: Mpeg2InterlaceMode? = nil, intraDcPrecision: Mpeg2IntraDcPrecision? = nil, maxBitrate: Int? = nil, minIInterval: Int? = nil, numberBFramesBetweenReferenceFrames: Int? = nil, parControl: Mpeg2ParControl? = nil, parDenominator: Int? = nil, parNumerator: Int? = nil, qualityTuningLevel: Mpeg2QualityTuningLevel? = nil, rateControlMode: Mpeg2RateControlMode? = nil, scanTypeConversionMode: Mpeg2ScanTypeConversionMode? = nil, sceneChangeDetect: Mpeg2SceneChangeDetect? = nil, slowPal: Mpeg2SlowPal? = nil, softness: Int? = nil, spatialAdaptiveQuantization: Mpeg2SpatialAdaptiveQuantization? = nil, syntax: Mpeg2Syntax? = nil, telecine: Mpeg2Telecine? = nil, temporalAdaptiveQuantization: Mpeg2TemporalAdaptiveQuantization? = nil) {
            self.adaptiveQuantization = adaptiveQuantization
            self.bitrate = bitrate
            self.codecLevel = codecLevel
            self.codecProfile = codecProfile
            self.dynamicSubGop = dynamicSubGop
            self.framerateControl = framerateControl
            self.framerateConversionAlgorithm = framerateConversionAlgorithm
            self.framerateDenominator = framerateDenominator
            self.framerateNumerator = framerateNumerator
            self.gopClosedCadence = gopClosedCadence
            self.gopSize = gopSize
            self.gopSizeUnits = gopSizeUnits
            self.hrdBufferInitialFillPercentage = hrdBufferInitialFillPercentage
            self.hrdBufferSize = hrdBufferSize
            self.interlaceMode = interlaceMode
            self.intraDcPrecision = intraDcPrecision
            self.maxBitrate = maxBitrate
            self.minIInterval = minIInterval
            self.numberBFramesBetweenReferenceFrames = numberBFramesBetweenReferenceFrames
            self.parControl = parControl
            self.parDenominator = parDenominator
            self.parNumerator = parNumerator
            self.qualityTuningLevel = qualityTuningLevel
            self.rateControlMode = rateControlMode
            self.scanTypeConversionMode = scanTypeConversionMode
            self.sceneChangeDetect = sceneChangeDetect
            self.slowPal = slowPal
            self.softness = softness
            self.spatialAdaptiveQuantization = spatialAdaptiveQuantization
            self.syntax = syntax
            self.telecine = telecine
            self.temporalAdaptiveQuantization = temporalAdaptiveQuantization
        }

        public func validate(name: String) throws {
            try self.validate(self.bitrate, name: "bitrate", parent: name, max: 288_000_000)
            try self.validate(self.bitrate, name: "bitrate", parent: name, min: 1000)
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, max: 1001)
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, min: 1)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, max: 60000)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, min: 24)
            try self.validate(self.gopClosedCadence, name: "gopClosedCadence", parent: name, max: 2_147_483_647)
            try self.validate(self.gopClosedCadence, name: "gopClosedCadence", parent: name, min: 0)
            try self.validate(self.hrdBufferInitialFillPercentage, name: "hrdBufferInitialFillPercentage", parent: name, max: 100)
            try self.validate(self.hrdBufferInitialFillPercentage, name: "hrdBufferInitialFillPercentage", parent: name, min: 0)
            try self.validate(self.hrdBufferSize, name: "hrdBufferSize", parent: name, max: 47_185_920)
            try self.validate(self.hrdBufferSize, name: "hrdBufferSize", parent: name, min: 0)
            try self.validate(self.maxBitrate, name: "maxBitrate", parent: name, max: 300_000_000)
            try self.validate(self.maxBitrate, name: "maxBitrate", parent: name, min: 1000)
            try self.validate(self.minIInterval, name: "minIInterval", parent: name, max: 30)
            try self.validate(self.minIInterval, name: "minIInterval", parent: name, min: 0)
            try self.validate(self.numberBFramesBetweenReferenceFrames, name: "numberBFramesBetweenReferenceFrames", parent: name, max: 7)
            try self.validate(self.numberBFramesBetweenReferenceFrames, name: "numberBFramesBetweenReferenceFrames", parent: name, min: 0)
            try self.validate(self.parDenominator, name: "parDenominator", parent: name, max: 2_147_483_647)
            try self.validate(self.parDenominator, name: "parDenominator", parent: name, min: 1)
            try self.validate(self.parNumerator, name: "parNumerator", parent: name, max: 2_147_483_647)
            try self.validate(self.parNumerator, name: "parNumerator", parent: name, min: 1)
            try self.validate(self.softness, name: "softness", parent: name, max: 128)
            try self.validate(self.softness, name: "softness", parent: name, min: 0)
        }

        private enum CodingKeys: String, CodingKey {
            case adaptiveQuantization
            case bitrate
            case codecLevel
            case codecProfile
            case dynamicSubGop
            case framerateControl
            case framerateConversionAlgorithm
            case framerateDenominator
            case framerateNumerator
            case gopClosedCadence
            case gopSize
            case gopSizeUnits
            case hrdBufferInitialFillPercentage
            case hrdBufferSize
            case interlaceMode
            case intraDcPrecision
            case maxBitrate
            case minIInterval
            case numberBFramesBetweenReferenceFrames
            case parControl
            case parDenominator
            case parNumerator
            case qualityTuningLevel
            case rateControlMode
            case scanTypeConversionMode
            case sceneChangeDetect
            case slowPal
            case softness
            case spatialAdaptiveQuantization
            case syntax
            case telecine
            case temporalAdaptiveQuantization
        }
    }

    public struct MsSmoothAdditionalManifest: AWSEncodableShape & AWSDecodableShape {
        /// Specify a name modifier that the service adds to the name of this manifest to make it different from the file names of the other main manifests in the output group. For example, say that the default main manifest for your Microsoft Smooth group is film-name.ismv. If you enter "-no-premium" for this setting, then the file name the service generates for this top-level manifest is film-name-no-premium.ismv.
        public let manifestNameModifier: String?
        /// Specify the outputs that you want this additional top-level manifest to reference.
        public let selectedOutputs: [String]?

        public init(manifestNameModifier: String? = nil, selectedOutputs: [String]? = nil) {
            self.manifestNameModifier = manifestNameModifier
            self.selectedOutputs = selectedOutputs
        }

        public func validate(name: String) throws {
            try self.validate(self.manifestNameModifier, name: "manifestNameModifier", parent: name, min: 1)
            try self.selectedOutputs?.forEach {
                try validate($0, name: "selectedOutputs[]", parent: name, min: 1)
            }
        }

        private enum CodingKeys: String, CodingKey {
            case manifestNameModifier
            case selectedOutputs
        }
    }

    public struct MsSmoothEncryptionSettings: AWSEncodableShape & AWSDecodableShape {
        /// If your output group type is HLS, DASH, or Microsoft Smooth, use these settings when doing DRM encryption with a SPEKE-compliant key provider.  If your output group type is CMAF, use the SpekeKeyProviderCmaf settings instead.
        public let spekeKeyProvider: SpekeKeyProvider?

        public init(spekeKeyProvider: SpekeKeyProvider? = nil) {
            self.spekeKeyProvider = spekeKeyProvider
        }

        public func validate(name: String) throws {
            try self.spekeKeyProvider?.validate(name: "\(name).spekeKeyProvider")
        }

        private enum CodingKeys: String, CodingKey {
            case spekeKeyProvider
        }
    }

    public struct MsSmoothGroupSettings: AWSEncodableShape & AWSDecodableShape {
        /// By default, the service creates one .ism Microsoft Smooth Streaming manifest for each Microsoft Smooth Streaming output group in your job. This default manifest references every output in the output group. To create additional manifests that reference a subset of the outputs in the output group, specify a list of them here.
        public let additionalManifests: [MsSmoothAdditionalManifest]?
        /// COMBINE_DUPLICATE_STREAMS combines identical audio encoding settings across a Microsoft Smooth output group into a single audio stream.
        public let audioDeduplication: MsSmoothAudioDeduplication?
        /// Use Destination (Destination) to specify the S3 output location and the output filename base. Destination accepts format identifiers. If you do not specify the base filename in the URI, the service will use the filename of the input file. If your job has multiple inputs, the service uses the filename of the first input file.
        public let destination: String?
        /// Settings associated with the destination. Will vary based on the type of destination
        public let destinationSettings: DestinationSettings?
        /// If you are using DRM, set DRM System (MsSmoothEncryptionSettings) to specify the value SpekeKeyProvider.
        public let encryption: MsSmoothEncryptionSettings?
        /// Use Fragment length (FragmentLength) to specify the mp4 fragment sizes in seconds. Fragment length must be compatible with GOP size and frame rate.
        public let fragmentLength: Int?
        /// Use Manifest encoding (MsSmoothManifestEncoding) to specify the encoding format for the server and client manifest. Valid options are utf8 and utf16.
        public let manifestEncoding: MsSmoothManifestEncoding?

        public init(additionalManifests: [MsSmoothAdditionalManifest]? = nil, audioDeduplication: MsSmoothAudioDeduplication? = nil, destination: String? = nil, destinationSettings: DestinationSettings? = nil, encryption: MsSmoothEncryptionSettings? = nil, fragmentLength: Int? = nil, manifestEncoding: MsSmoothManifestEncoding? = nil) {
            self.additionalManifests = additionalManifests
            self.audioDeduplication = audioDeduplication
            self.destination = destination
            self.destinationSettings = destinationSettings
            self.encryption = encryption
            self.fragmentLength = fragmentLength
            self.manifestEncoding = manifestEncoding
        }

        public func validate(name: String) throws {
            try self.additionalManifests?.forEach {
                try $0.validate(name: "\(name).additionalManifests[]")
            }
            try self.validate(self.destination, name: "destination", parent: name, pattern: "^s3:\\/\\/")
            try self.destinationSettings?.validate(name: "\(name).destinationSettings")
            try self.encryption?.validate(name: "\(name).encryption")
            try self.validate(self.fragmentLength, name: "fragmentLength", parent: name, max: 2_147_483_647)
            try self.validate(self.fragmentLength, name: "fragmentLength", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case additionalManifests
            case audioDeduplication
            case destination
            case destinationSettings
            case encryption
            case fragmentLength
            case manifestEncoding
        }
    }

    public struct MxfSettings: AWSEncodableShape & AWSDecodableShape {
        /// Optional. When you have AFD signaling set up in your output video stream, use this setting to choose whether to also include it in the MXF wrapper. Choose Don't copy (NO_COPY) to exclude AFD signaling from the MXF wrapper. Choose Copy from video stream (COPY_FROM_VIDEO) to copy the AFD values from the video stream for this output to the MXF wrapper. Regardless of which option you choose, the AFD values remain in the video stream. Related settings: To set up your output to include or exclude AFD values, see AfdSignaling, under VideoDescription. On the console, find AFD signaling under the output's video encoding settings.
        public let afdSignaling: MxfAfdSignaling?
        /// Specify the MXF profile, also called shim, for this output. When you choose Auto, MediaConvert chooses a profile based on the video codec and resolution. For a list of codecs supported with each MXF profile, see https://docs.aws.amazon.com/mediaconvert/latest/ug/codecs-supported-with-each-mxf-profile.html. For more information about the automatic selection behavior, see https://docs.aws.amazon.com/mediaconvert/latest/ug/default-automatic-selection-of-mxf-profiles.html.
        public let profile: MxfProfile?

        public init(afdSignaling: MxfAfdSignaling? = nil, profile: MxfProfile? = nil) {
            self.afdSignaling = afdSignaling
            self.profile = profile
        }

        private enum CodingKeys: String, CodingKey {
            case afdSignaling
            case profile
        }
    }

    public struct NexGuardFileMarkerSettings: AWSEncodableShape & AWSDecodableShape {
        /// Use the base64 license string that Nagra provides you. Enter it directly in your JSON job specification or in the console. Required when you include Nagra NexGuard File Marker watermarking (NexGuardWatermarkingSettings) in your job.
        public let license: String?
        /// Specify the payload ID that you want associated with this output. Valid values vary depending on your Nagra NexGuard forensic watermarking workflow. Required when you include Nagra NexGuard File Marker watermarking (NexGuardWatermarkingSettings) in your job. For PreRelease Content (NGPR/G2), specify an integer from 1 through 4,194,303. You must generate a unique ID for each asset you watermark, and keep a record of which ID you have assigned to each asset. Neither Nagra nor MediaConvert keep track of the relationship between output files and your IDs. For OTT Streaming, create two adaptive bitrate (ABR) stacks for each asset. Do this by setting up two output groups. For one output group, set the value of Payload ID (payload) to 0 in every output. For the other output group, set Payload ID (payload) to 1 in every output.
        public let payload: Int?
        /// Enter one of the watermarking preset strings that Nagra provides you. Required when you include Nagra NexGuard File Marker watermarking (NexGuardWatermarkingSettings) in your job.
        public let preset: String?
        /// Optional. Ignore this setting unless Nagra support directs you to specify a value. When you don't specify a value here, the Nagra NexGuard library uses its default value.
        public let strength: WatermarkingStrength?

        public init(license: String? = nil, payload: Int? = nil, preset: String? = nil, strength: WatermarkingStrength? = nil) {
            self.license = license
            self.payload = payload
            self.preset = preset
            self.strength = strength
        }

        public func validate(name: String) throws {
            try self.validate(self.license, name: "license", parent: name, max: 100_000)
            try self.validate(self.license, name: "license", parent: name, min: 1)
            try self.validate(self.payload, name: "payload", parent: name, max: 4_194_303)
            try self.validate(self.payload, name: "payload", parent: name, min: 0)
            try self.validate(self.preset, name: "preset", parent: name, max: 256)
            try self.validate(self.preset, name: "preset", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case license
            case payload
            case preset
            case strength
        }
    }

    public struct NielsenConfiguration: AWSEncodableShape & AWSDecodableShape {
        /// Nielsen has discontinued the use of breakout code functionality. If you must include this property, set the value to zero.
        public let breakoutCode: Int?
        /// Use Distributor ID (DistributorID) to specify the distributor ID that is assigned to your organization by Neilsen.
        public let distributorId: String?

        public init(breakoutCode: Int? = nil, distributorId: String? = nil) {
            self.breakoutCode = breakoutCode
            self.distributorId = distributorId
        }

        public func validate(name: String) throws {
            try self.validate(self.breakoutCode, name: "breakoutCode", parent: name, max: 0)
            try self.validate(self.breakoutCode, name: "breakoutCode", parent: name, min: 0)
        }

        private enum CodingKeys: String, CodingKey {
            case breakoutCode
            case distributorId
        }
    }

    public struct NielsenNonLinearWatermarkSettings: AWSEncodableShape & AWSDecodableShape {
        /// Choose the type of Nielsen watermarks that you want in your outputs. When you choose NAES 2 and NW (NAES2_AND_NW), you must provide a value for the setting SID (sourceId). When you choose CBET (CBET), you must provide a value for the setting CSID (cbetSourceId). When you choose NAES 2, NW, and CBET (NAES2_AND_NW_AND_CBET), you must provide values for both of these settings.
        public let activeWatermarkProcess: NielsenActiveWatermarkProcessType?
        /// Optional. Use this setting when you want the service to include an ADI file in the Nielsen  metadata .zip file. To provide an ADI file, store it in Amazon S3 and provide a URL to it  here. The URL should be in the following format: S3://bucket/path/ADI-file. For more information about the metadata .zip file, see the setting Metadata destination (metadataDestination).
        public let adiFilename: String?
        /// Use the asset ID that you provide to Nielsen to uniquely identify this asset. Required for all Nielsen non-linear watermarking.
        public let assetId: String?
        /// Use the asset name that you provide to Nielsen for this asset. Required for all Nielsen non-linear watermarking.
        public let assetName: String?
        /// Use the CSID that Nielsen provides to you. This CBET source ID should be unique to your Nielsen account but common to all of your output assets that have CBET watermarking. Required when you choose a value for the setting Watermark types (ActiveWatermarkProcess) that includes CBET.
        public let cbetSourceId: String?
        /// Optional. If this asset uses an episode ID with Nielsen, provide it here.
        public let episodeId: String?
        /// Specify the Amazon S3 location where you want MediaConvert to save your Nielsen non-linear metadata .zip file. This Amazon S3 bucket must be in the same Region as the one where you do your MediaConvert transcoding. If you want to include an ADI file in this .zip file, use the setting ADI file (adiFilename) to specify it. MediaConvert delivers the Nielsen metadata .zip files only to your metadata destination Amazon S3 bucket. It doesn't deliver the .zip files to Nielsen. You are responsible for delivering the metadata .zip files to Nielsen.
        public let metadataDestination: String?
        /// Use the SID that Nielsen provides to you. This source ID should be unique to your Nielsen account but common to all of your output assets. Required for all Nielsen non-linear watermarking. This ID should be unique to your Nielsen account but common to all of your output assets. Required for all Nielsen non-linear watermarking.
        public let sourceId: Int?
        /// Required. Specify whether your source content already contains Nielsen non-linear watermarks. When you set this value to Watermarked (WATERMARKED), the service fails the job. Nielsen requires that you add non-linear watermarking to only clean content that doesn't already  have non-linear Nielsen watermarks.
        public let sourceWatermarkStatus: NielsenSourceWatermarkStatusType?
        /// Specify the endpoint for the TIC server that you have deployed and configured in the AWS Cloud. Required for all Nielsen non-linear watermarking. MediaConvert can't connect directly to a TIC server. Instead, you must use API Gateway to provide a RESTful interface between MediaConvert and a TIC server that you deploy in your AWS account. For more information on deploying a TIC server in your AWS account and the required API Gateway, contact Nielsen support.
        public let ticServerUrl: String?
        /// To create assets that have the same TIC values in each audio track, keep the default value Share TICs (SAME_TICS_PER_TRACK). To create assets that have unique TIC values for each audio track, choose Use unique TICs (RESERVE_UNIQUE_TICS_PER_TRACK).
        public let uniqueTicPerAudioTrack: NielsenUniqueTicPerAudioTrackType?

        public init(activeWatermarkProcess: NielsenActiveWatermarkProcessType? = nil, adiFilename: String? = nil, assetId: String? = nil, assetName: String? = nil, cbetSourceId: String? = nil, episodeId: String? = nil, metadataDestination: String? = nil, sourceId: Int? = nil, sourceWatermarkStatus: NielsenSourceWatermarkStatusType? = nil, ticServerUrl: String? = nil, uniqueTicPerAudioTrack: NielsenUniqueTicPerAudioTrackType? = nil) {
            self.activeWatermarkProcess = activeWatermarkProcess
            self.adiFilename = adiFilename
            self.assetId = assetId
            self.assetName = assetName
            self.cbetSourceId = cbetSourceId
            self.episodeId = episodeId
            self.metadataDestination = metadataDestination
            self.sourceId = sourceId
            self.sourceWatermarkStatus = sourceWatermarkStatus
            self.ticServerUrl = ticServerUrl
            self.uniqueTicPerAudioTrack = uniqueTicPerAudioTrack
        }

        public func validate(name: String) throws {
            try self.validate(self.adiFilename, name: "adiFilename", parent: name, pattern: "^s3:\\/\\/")
            try self.validate(self.assetId, name: "assetId", parent: name, max: 20)
            try self.validate(self.assetId, name: "assetId", parent: name, min: 1)
            try self.validate(self.assetName, name: "assetName", parent: name, max: 50)
            try self.validate(self.assetName, name: "assetName", parent: name, min: 1)
            try self.validate(self.cbetSourceId, name: "cbetSourceId", parent: name, pattern: "(^0x[A-Fa-f0-9]{0,8}$|^[1-9][0-9]{0,8}$)")
            try self.validate(self.episodeId, name: "episodeId", parent: name, max: 20)
            try self.validate(self.episodeId, name: "episodeId", parent: name, min: 1)
            try self.validate(self.metadataDestination, name: "metadataDestination", parent: name, pattern: "^s3:\\/\\/")
            try self.validate(self.sourceId, name: "sourceId", parent: name, max: 65534)
            try self.validate(self.sourceId, name: "sourceId", parent: name, min: 0)
            try self.validate(self.ticServerUrl, name: "ticServerUrl", parent: name, pattern: "^https:\\/\\/")
        }

        private enum CodingKeys: String, CodingKey {
            case activeWatermarkProcess
            case adiFilename
            case assetId
            case assetName
            case cbetSourceId
            case episodeId
            case metadataDestination
            case sourceId
            case sourceWatermarkStatus
            case ticServerUrl
            case uniqueTicPerAudioTrack
        }
    }

    public struct NoiseReducer: AWSEncodableShape & AWSDecodableShape {
        /// Use Noise reducer filter (NoiseReducerFilter) to select one of the following spatial image filtering functions. To use this setting, you must also enable Noise reducer (NoiseReducer). * Bilateral preserves edges while reducing noise. * Mean (softest), Gaussian, Lanczos, and Sharpen (sharpest) do convolution filtering. * Conserve does min/max noise reduction. * Spatial does frequency-domain filtering based on JND principles. * Temporal optimizes video quality for complex motion.
        public let filter: NoiseReducerFilter?
        /// Settings for a noise reducer filter
        public let filterSettings: NoiseReducerFilterSettings?
        /// Noise reducer filter settings for spatial filter.
        public let spatialFilterSettings: NoiseReducerSpatialFilterSettings?
        /// Noise reducer filter settings for temporal filter.
        public let temporalFilterSettings: NoiseReducerTemporalFilterSettings?

        public init(filter: NoiseReducerFilter? = nil, filterSettings: NoiseReducerFilterSettings? = nil, spatialFilterSettings: NoiseReducerSpatialFilterSettings? = nil, temporalFilterSettings: NoiseReducerTemporalFilterSettings? = nil) {
            self.filter = filter
            self.filterSettings = filterSettings
            self.spatialFilterSettings = spatialFilterSettings
            self.temporalFilterSettings = temporalFilterSettings
        }

        public func validate(name: String) throws {
            try self.filterSettings?.validate(name: "\(name).filterSettings")
            try self.spatialFilterSettings?.validate(name: "\(name).spatialFilterSettings")
            try self.temporalFilterSettings?.validate(name: "\(name).temporalFilterSettings")
        }

        private enum CodingKeys: String, CodingKey {
            case filter
            case filterSettings
            case spatialFilterSettings
            case temporalFilterSettings
        }
    }

    public struct NoiseReducerFilterSettings: AWSEncodableShape & AWSDecodableShape {
        /// Relative strength of noise reducing filter. Higher values produce stronger filtering.
        public let strength: Int?

        public init(strength: Int? = nil) {
            self.strength = strength
        }

        public func validate(name: String) throws {
            try self.validate(self.strength, name: "strength", parent: name, max: 3)
            try self.validate(self.strength, name: "strength", parent: name, min: 0)
        }

        private enum CodingKeys: String, CodingKey {
            case strength
        }
    }

    public struct NoiseReducerSpatialFilterSettings: AWSEncodableShape & AWSDecodableShape {
        /// Specify strength of post noise reduction sharpening filter, with 0 disabling the filter and 3 enabling it at maximum strength.
        public let postFilterSharpenStrength: Int?
        /// The speed of the filter, from -2 (lower speed) to 3 (higher speed), with 0 being the nominal value.
        public let speed: Int?
        /// Relative strength of noise reducing filter. Higher values produce stronger filtering.
        public let strength: Int?

        public init(postFilterSharpenStrength: Int? = nil, speed: Int? = nil, strength: Int? = nil) {
            self.postFilterSharpenStrength = postFilterSharpenStrength
            self.speed = speed
            self.strength = strength
        }

        public func validate(name: String) throws {
            try self.validate(self.postFilterSharpenStrength, name: "postFilterSharpenStrength", parent: name, max: 3)
            try self.validate(self.postFilterSharpenStrength, name: "postFilterSharpenStrength", parent: name, min: 0)
            try self.validate(self.speed, name: "speed", parent: name, max: 3)
            try self.validate(self.speed, name: "speed", parent: name, min: -2)
            try self.validate(self.strength, name: "strength", parent: name, max: 16)
            try self.validate(self.strength, name: "strength", parent: name, min: 0)
        }

        private enum CodingKeys: String, CodingKey {
            case postFilterSharpenStrength
            case speed
            case strength
        }
    }

    public struct NoiseReducerTemporalFilterSettings: AWSEncodableShape & AWSDecodableShape {
        /// Use Aggressive mode for content that has complex motion. Higher values produce stronger temporal filtering. This filters highly complex scenes more aggressively and creates better VQ for low bitrate outputs.
        public let aggressiveMode: Int?
        /// Optional. When you set Noise reducer (noiseReducer) to Temporal (TEMPORAL), you can use this setting to apply sharpening. The default behavior, Auto (AUTO), allows the transcoder to determine whether to apply filtering, depending on input type and quality. When you set Noise reducer to Temporal, your output bandwidth is reduced. When Post temporal sharpening is also enabled, that bandwidth reduction is smaller.
        public let postTemporalSharpening: NoiseFilterPostTemporalSharpening?
        /// The speed of the filter (higher number is faster). Low setting reduces bit rate at the cost of transcode time, high setting improves transcode time at the cost of bit rate.
        public let speed: Int?
        /// Specify the strength of the noise reducing filter on this output. Higher values produce stronger filtering. We recommend the following value ranges, depending on the result that you want: * 0-2 for complexity reduction with minimal sharpness loss * 2-8 for complexity reduction with image preservation * 8-16 for a high level of complexity reduction
        public let strength: Int?

        public init(aggressiveMode: Int? = nil, postTemporalSharpening: NoiseFilterPostTemporalSharpening? = nil, speed: Int? = nil, strength: Int? = nil) {
            self.aggressiveMode = aggressiveMode
            self.postTemporalSharpening = postTemporalSharpening
            self.speed = speed
            self.strength = strength
        }

        public func validate(name: String) throws {
            try self.validate(self.aggressiveMode, name: "aggressiveMode", parent: name, max: 4)
            try self.validate(self.aggressiveMode, name: "aggressiveMode", parent: name, min: 0)
            try self.validate(self.speed, name: "speed", parent: name, max: 3)
            try self.validate(self.speed, name: "speed", parent: name, min: -1)
            try self.validate(self.strength, name: "strength", parent: name, max: 16)
            try self.validate(self.strength, name: "strength", parent: name, min: 0)
        }

        private enum CodingKeys: String, CodingKey {
            case aggressiveMode
            case postTemporalSharpening
            case speed
            case strength
        }
    }

    public struct OpusSettings: AWSEncodableShape & AWSDecodableShape {
        /// Optional. Specify the average bitrate in bits per second. Valid values are multiples of 8000, from 32000 through 192000. The default value is 96000, which we recommend for quality and bandwidth.
        public let bitrate: Int?
        /// Specify the number of channels in this output audio track. Choosing Mono on the console gives you 1 output channel; choosing Stereo gives you 2. In the API, valid values are 1 and 2.
        public let channels: Int?
        /// Optional. Sample rate in hz. Valid values are 16000, 24000, and 48000. The default value is 48000.
        public let sampleRate: Int?

        public init(bitrate: Int? = nil, channels: Int? = nil, sampleRate: Int? = nil) {
            self.bitrate = bitrate
            self.channels = channels
            self.sampleRate = sampleRate
        }

        public func validate(name: String) throws {
            try self.validate(self.bitrate, name: "bitrate", parent: name, max: 192_000)
            try self.validate(self.bitrate, name: "bitrate", parent: name, min: 32000)
            try self.validate(self.channels, name: "channels", parent: name, max: 2)
            try self.validate(self.channels, name: "channels", parent: name, min: 1)
            try self.validate(self.sampleRate, name: "sampleRate", parent: name, max: 48000)
            try self.validate(self.sampleRate, name: "sampleRate", parent: name, min: 16000)
        }

        private enum CodingKeys: String, CodingKey {
            case bitrate
            case channels
            case sampleRate
        }
    }

    public struct Output: AWSEncodableShape & AWSDecodableShape {
        /// (AudioDescriptions) contains groups of audio encoding settings organized by audio codec. Include one instance of (AudioDescriptions) per output. (AudioDescriptions) can contain multiple groups of encoding settings.
        public let audioDescriptions: [AudioDescription]?
        /// (CaptionDescriptions) contains groups of captions settings. For each output that has captions, include one instance of (CaptionDescriptions). (CaptionDescriptions) can contain multiple groups of captions settings.
        public let captionDescriptions: [CaptionDescription]?
        /// Container specific settings.
        public let containerSettings: ContainerSettings?
        /// Use Extension (Extension) to specify the file extension for outputs in File output groups. If you do not specify a value, the service will use default extensions by container type as follows * MPEG-2 transport stream, m2ts * Quicktime, mov * MXF container, mxf * MPEG-4 container, mp4 * WebM container, webm * No Container, the service will use codec extensions (e.g. AAC, H265, H265, AC3)
        public let `extension`: String?
        /// Use Name modifier (NameModifier) to have the service add a string to the end of each output filename. You specify the base filename as part of your destination URI. When you create multiple outputs in the same output group, Name modifier (NameModifier) is required. Name modifier also accepts format identifiers. For DASH ISO outputs, if you use the format identifiers $Number$ or $Time$ in one output, you must use them in the same way in all outputs of the output group.
        public let nameModifier: String?
        /// Specific settings for this type of output.
        public let outputSettings: OutputSettings?
        /// Use Preset (Preset) to specify a preset for your transcoding settings. Provide the system or custom preset name. You can specify either Preset (Preset) or Container settings (ContainerSettings), but not both.
        public let preset: String?
        /// (VideoDescription) contains a group of video encoding settings. The specific video settings depend on the video codec that you choose when you specify a value for Video codec (codec). Include one instance of (VideoDescription) per output.
        public let videoDescription: VideoDescription?

        public init(audioDescriptions: [AudioDescription]? = nil, captionDescriptions: [CaptionDescription]? = nil, containerSettings: ContainerSettings? = nil, extension: String? = nil, nameModifier: String? = nil, outputSettings: OutputSettings? = nil, preset: String? = nil, videoDescription: VideoDescription? = nil) {
            self.audioDescriptions = audioDescriptions
            self.captionDescriptions = captionDescriptions
            self.containerSettings = containerSettings
            self.`extension` = `extension`
            self.nameModifier = nameModifier
            self.outputSettings = outputSettings
            self.preset = preset
            self.videoDescription = videoDescription
        }

        public func validate(name: String) throws {
            try self.audioDescriptions?.forEach {
                try $0.validate(name: "\(name).audioDescriptions[]")
            }
            try self.captionDescriptions?.forEach {
                try $0.validate(name: "\(name).captionDescriptions[]")
            }
            try self.containerSettings?.validate(name: "\(name).containerSettings")
            try self.validate(self.nameModifier, name: "nameModifier", parent: name, min: 1)
            try self.validate(self.preset, name: "preset", parent: name, min: 0)
            try self.videoDescription?.validate(name: "\(name).videoDescription")
        }

        private enum CodingKeys: String, CodingKey {
            case audioDescriptions
            case captionDescriptions
            case containerSettings
            case `extension`
            case nameModifier
            case outputSettings
            case preset
            case videoDescription
        }
    }

    public struct OutputChannelMapping: AWSEncodableShape & AWSDecodableShape {
        /// Use this setting to specify your remix values when they are integers, such as -10, 0, or 4.
        public let inputChannels: [Int]?
        /// Use this setting to specify your remix values when they have a decimal component, such as -10.312, 0.08, or 4.9. MediaConvert rounds your remixing values to the nearest thousandth.
        public let inputChannelsFineTune: [Double]?

        public init(inputChannels: [Int]? = nil, inputChannelsFineTune: [Double]? = nil) {
            self.inputChannels = inputChannels
            self.inputChannelsFineTune = inputChannelsFineTune
        }

        public func validate(name: String) throws {
            try self.inputChannels?.forEach {
                try validate($0, name: "inputChannels[]", parent: name, max: 6)
                try validate($0, name: "inputChannels[]", parent: name, min: -60)
            }
        }

        private enum CodingKeys: String, CodingKey {
            case inputChannels
            case inputChannelsFineTune
        }
    }

    public struct OutputDetail: AWSDecodableShape {
        /// Duration in milliseconds
        public let durationInMs: Int?
        /// Contains details about the output's video stream
        public let videoDetails: VideoDetail?

        public init(durationInMs: Int? = nil, videoDetails: VideoDetail? = nil) {
            self.durationInMs = durationInMs
            self.videoDetails = videoDetails
        }

        private enum CodingKeys: String, CodingKey {
            case durationInMs
            case videoDetails
        }
    }

    public struct OutputGroup: AWSEncodableShape & AWSDecodableShape {
        /// Use automated encoding to have MediaConvert choose your encoding settings for you, based on characteristics of your input video.
        public let automatedEncodingSettings: AutomatedEncodingSettings?
        /// Use Custom Group Name (CustomName) to specify a name for the output group. This value is displayed on the console and can make your job settings JSON more human-readable. It does not affect your outputs. Use up to twelve characters that are either letters, numbers, spaces, or underscores.
        public let customName: String?
        /// Name of the output group
        public let name: String?
        /// Output Group settings, including type
        public let outputGroupSettings: OutputGroupSettings?
        /// This object holds groups of encoding settings, one group of settings per output.
        public let outputs: [Output]?

        public init(automatedEncodingSettings: AutomatedEncodingSettings? = nil, customName: String? = nil, name: String? = nil, outputGroupSettings: OutputGroupSettings? = nil, outputs: [Output]? = nil) {
            self.automatedEncodingSettings = automatedEncodingSettings
            self.customName = customName
            self.name = name
            self.outputGroupSettings = outputGroupSettings
            self.outputs = outputs
        }

        public func validate(name: String) throws {
            try self.automatedEncodingSettings?.validate(name: "\(name).automatedEncodingSettings")
            try self.outputGroupSettings?.validate(name: "\(name).outputGroupSettings")
            try self.outputs?.forEach {
                try $0.validate(name: "\(name).outputs[]")
            }
        }

        private enum CodingKeys: String, CodingKey {
            case automatedEncodingSettings
            case customName
            case name
            case outputGroupSettings
            case outputs
        }
    }

    public struct OutputGroupDetail: AWSDecodableShape {
        /// Details about the output
        public let outputDetails: [OutputDetail]?

        public init(outputDetails: [OutputDetail]? = nil) {
            self.outputDetails = outputDetails
        }

        private enum CodingKeys: String, CodingKey {
            case outputDetails
        }
    }

    public struct OutputGroupSettings: AWSEncodableShape & AWSDecodableShape {
        /// Required when you set (Type) under (OutputGroups)>(OutputGroupSettings) to CMAF_GROUP_SETTINGS. Each output in a CMAF Output Group may only contain a single video, audio, or caption output.
        public let cmafGroupSettings: CmafGroupSettings?
        /// Required when you set (Type) under (OutputGroups)>(OutputGroupSettings) to DASH_ISO_GROUP_SETTINGS.
        public let dashIsoGroupSettings: DashIsoGroupSettings?
        /// Required when you set (Type) under (OutputGroups)>(OutputGroupSettings) to FILE_GROUP_SETTINGS.
        public let fileGroupSettings: FileGroupSettings?
        /// Required when you set (Type) under (OutputGroups)>(OutputGroupSettings) to HLS_GROUP_SETTINGS.
        public let hlsGroupSettings: HlsGroupSettings?
        /// Required when you set (Type) under (OutputGroups)>(OutputGroupSettings) to MS_SMOOTH_GROUP_SETTINGS.
        public let msSmoothGroupSettings: MsSmoothGroupSettings?
        /// Type of output group (File group, Apple HLS, DASH ISO, Microsoft Smooth Streaming, CMAF)
        public let type: OutputGroupType?

        public init(cmafGroupSettings: CmafGroupSettings? = nil, dashIsoGroupSettings: DashIsoGroupSettings? = nil, fileGroupSettings: FileGroupSettings? = nil, hlsGroupSettings: HlsGroupSettings? = nil, msSmoothGroupSettings: MsSmoothGroupSettings? = nil, type: OutputGroupType? = nil) {
            self.cmafGroupSettings = cmafGroupSettings
            self.dashIsoGroupSettings = dashIsoGroupSettings
            self.fileGroupSettings = fileGroupSettings
            self.hlsGroupSettings = hlsGroupSettings
            self.msSmoothGroupSettings = msSmoothGroupSettings
            self.type = type
        }

        public func validate(name: String) throws {
            try self.cmafGroupSettings?.validate(name: "\(name).cmafGroupSettings")
            try self.dashIsoGroupSettings?.validate(name: "\(name).dashIsoGroupSettings")
            try self.fileGroupSettings?.validate(name: "\(name).fileGroupSettings")
            try self.hlsGroupSettings?.validate(name: "\(name).hlsGroupSettings")
            try self.msSmoothGroupSettings?.validate(name: "\(name).msSmoothGroupSettings")
        }

        private enum CodingKeys: String, CodingKey {
            case cmafGroupSettings
            case dashIsoGroupSettings
            case fileGroupSettings
            case hlsGroupSettings
            case msSmoothGroupSettings
            case type
        }
    }

    public struct OutputSettings: AWSEncodableShape & AWSDecodableShape {
        /// Settings for HLS output groups
        public let hlsSettings: HlsSettings?

        public init(hlsSettings: HlsSettings? = nil) {
            self.hlsSettings = hlsSettings
        }

        private enum CodingKeys: String, CodingKey {
            case hlsSettings
        }
    }

    public struct PartnerWatermarking: AWSEncodableShape & AWSDecodableShape {
        /// For forensic video watermarking, MediaConvert supports Nagra NexGuard File Marker watermarking. MediaConvert supports both PreRelease Content (NGPR/G2) and OTT Streaming workflows.
        public let nexguardFileMarkerSettings: NexGuardFileMarkerSettings?

        public init(nexguardFileMarkerSettings: NexGuardFileMarkerSettings? = nil) {
            self.nexguardFileMarkerSettings = nexguardFileMarkerSettings
        }

        public func validate(name: String) throws {
            try self.nexguardFileMarkerSettings?.validate(name: "\(name).nexguardFileMarkerSettings")
        }

        private enum CodingKeys: String, CodingKey {
            case nexguardFileMarkerSettings
        }
    }

    public struct Preset: AWSDecodableShape {
        /// An identifier for this resource that is unique within all of AWS.
        public let arn: String?
        /// An optional category you create to organize your presets.
        public let category: String?
        /// The timestamp in epoch seconds for preset creation.
        @OptionalCustomCoding<UnixEpochDateCoder>
        public var createdAt: Date?
        /// An optional description you create for each preset.
        public let description: String?
        /// The timestamp in epoch seconds when the preset was last updated.
        @OptionalCustomCoding<UnixEpochDateCoder>
        public var lastUpdated: Date?
        /// A name you create for each preset. Each name must be unique within your account.
        public let name: String
        /// Settings for preset
        public let settings: PresetSettings
        /// A preset can be of two types: system or custom. System or built-in preset can't be modified or deleted by the user.
        public let type: `Type`?

        public init(arn: String? = nil, category: String? = nil, createdAt: Date? = nil, description: String? = nil, lastUpdated: Date? = nil, name: String, settings: PresetSettings, type: `Type`? = nil) {
            self.arn = arn
            self.category = category
            self.createdAt = createdAt
            self.description = description
            self.lastUpdated = lastUpdated
            self.name = name
            self.settings = settings
            self.type = type
        }

        private enum CodingKeys: String, CodingKey {
            case arn
            case category
            case createdAt
            case description
            case lastUpdated
            case name
            case settings
            case type
        }
    }

    public struct PresetSettings: AWSEncodableShape & AWSDecodableShape {
        /// (AudioDescriptions) contains groups of audio encoding settings organized by audio codec. Include one instance of (AudioDescriptions) per output. (AudioDescriptions) can contain multiple groups of encoding settings.
        public let audioDescriptions: [AudioDescription]?
        /// Caption settings for this preset. There can be multiple caption settings in a single output.
        public let captionDescriptions: [CaptionDescriptionPreset]?
        /// Container specific settings.
        public let containerSettings: ContainerSettings?
        /// (VideoDescription) contains a group of video encoding settings. The specific video settings depend on the video codec that you choose when you specify a value for Video codec (codec). Include one instance of (VideoDescription) per output.
        public let videoDescription: VideoDescription?

        public init(audioDescriptions: [AudioDescription]? = nil, captionDescriptions: [CaptionDescriptionPreset]? = nil, containerSettings: ContainerSettings? = nil, videoDescription: VideoDescription? = nil) {
            self.audioDescriptions = audioDescriptions
            self.captionDescriptions = captionDescriptions
            self.containerSettings = containerSettings
            self.videoDescription = videoDescription
        }

        public func validate(name: String) throws {
            try self.audioDescriptions?.forEach {
                try $0.validate(name: "\(name).audioDescriptions[]")
            }
            try self.captionDescriptions?.forEach {
                try $0.validate(name: "\(name).captionDescriptions[]")
            }
            try self.containerSettings?.validate(name: "\(name).containerSettings")
            try self.videoDescription?.validate(name: "\(name).videoDescription")
        }

        private enum CodingKeys: String, CodingKey {
            case audioDescriptions
            case captionDescriptions
            case containerSettings
            case videoDescription
        }
    }

    public struct ProresSettings: AWSEncodableShape & AWSDecodableShape {
        /// Use Profile (ProResCodecProfile) to specify the type of Apple ProRes codec to use for this output.
        public let codecProfile: ProresCodecProfile?
        /// If you are using the console, use the Framerate setting to specify the frame rate for this output. If you want to keep the same frame rate as the input video, choose Follow source. If you want to do frame rate conversion, choose a frame rate from the dropdown list or choose Custom. The framerates shown in the dropdown list are decimal approximations of fractions. If you choose Custom, specify your frame rate as a fraction. If you are creating your transcoding job specification as a JSON file without the console, use FramerateControl to specify which value the service uses for the frame rate for this output. Choose INITIALIZE_FROM_SOURCE if you want the service to use the frame rate from the input. Choose SPECIFIED if you want the service to use the frame rate you specify in the settings FramerateNumerator and FramerateDenominator.
        public let framerateControl: ProresFramerateControl?
        /// Choose the method that you want MediaConvert to use when increasing or decreasing the frame rate. We recommend using drop duplicate (DUPLICATE_DROP) for numerically simple conversions, such as 60 fps to 30 fps. For numerically complex conversions, you can use interpolate (INTERPOLATE) to avoid stutter. This results in a smooth picture, but might introduce undesirable video artifacts. For complex frame rate conversions, especially if your source video has already been converted from its original cadence, use FrameFormer (FRAMEFORMER) to do motion-compensated interpolation. FrameFormer chooses the best conversion method frame by frame. Note that using FrameFormer increases the transcoding time and incurs a significant add-on cost.
        public let framerateConversionAlgorithm: ProresFramerateConversionAlgorithm?
        /// When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example,  24000 / 1001 = 23.976 fps. Use FramerateDenominator to specify the denominator of this fraction. In this example, use 1001 for the value of FramerateDenominator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
        public let framerateDenominator: Int?
        /// When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example,  24000 / 1001 = 23.976 fps. Use FramerateNumerator to specify the numerator of this fraction. In this example, use 24000 for the value of FramerateNumerator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
        public let framerateNumerator: Int?
        /// Choose the scan line type for the output. Keep the default value, Progressive (PROGRESSIVE) to create a progressive output, regardless of the scan type of your input. Use Top field first (TOP_FIELD) or Bottom field first (BOTTOM_FIELD) to create an output that's interlaced with the same field polarity throughout. Use Follow, default top (FOLLOW_TOP_FIELD) or Follow, default bottom (FOLLOW_BOTTOM_FIELD) to produce outputs with the same field polarity as the source. For jobs that have multiple inputs, the output field polarity might change over the course of the output. Follow behavior depends on the input scan type. If the source is interlaced, the output will be interlaced with the same polarity as the source. If the source is progressive, the output will be interlaced with top field bottom field first, depending on which of the Follow options you choose.
        public let interlaceMode: ProresInterlaceMode?
        /// Optional. Specify how the service determines the pixel aspect ratio (PAR) for this output. The default behavior, Follow source (INITIALIZE_FROM_SOURCE), uses the PAR from your input video for your output. To specify a different PAR in the console, choose any value other than Follow source. To specify a different PAR by editing the JSON job specification, choose SPECIFIED. When you choose SPECIFIED for this setting, you must also specify values for the parNumerator and parDenominator settings.
        public let parControl: ProresParControl?
        /// Required when you set Pixel aspect ratio (parControl) to SPECIFIED. On the console, this corresponds to any value other than Follow source. When you specify an output pixel aspect ratio (PAR) that is different from your input video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC widescreen, you would specify the ratio 40:33. In this example, the value for parDenominator is 33.
        public let parDenominator: Int?
        /// Required when you set Pixel aspect ratio (parControl) to SPECIFIED. On the console, this corresponds to any value other than Follow source. When you specify an output pixel aspect ratio (PAR) that is different from your input video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC widescreen, you would specify the ratio 40:33. In this example, the value for parNumerator is 40.
        public let parNumerator: Int?
        /// Use this setting for interlaced outputs, when your output frame rate is half of your input frame rate. In this situation, choose Optimized interlacing (INTERLACED_OPTIMIZE) to create a better quality interlaced output. In this case, each progressive frame from the input corresponds to an interlaced field in the output. Keep the default value, Basic interlacing (INTERLACED), for all other output frame rates. With basic interlacing, MediaConvert performs any frame rate conversion first and then interlaces the frames. When you choose Optimized interlacing and you set your output frame rate to a value that isn't suitable for optimized interlacing, MediaConvert automatically falls back to basic interlacing. Required settings: To use optimized interlacing, you must set Telecine (telecine) to None (NONE) or Soft (SOFT). You can't use optimized interlacing for hard telecine outputs. You must also set Interlace mode (interlaceMode) to a value other than Progressive (PROGRESSIVE).
        public let scanTypeConversionMode: ProresScanTypeConversionMode?
        /// Ignore this setting unless your input frame rate is 23.976 or 24 frames per second (fps). Enable slow PAL to create a 25 fps output. When you enable slow PAL, MediaConvert relabels the video frames to 25 fps and resamples your audio to keep it synchronized with the video. Note that enabling this setting will slightly reduce the duration of your video. Required settings: You must also set Framerate to 25. In your JSON job specification, set (framerateControl) to (SPECIFIED), (framerateNumerator) to 25 and (framerateDenominator) to 1.
        public let slowPal: ProresSlowPal?
        /// When you do frame rate conversion from 23.976 frames per second (fps) to 29.97 fps, and your output scan type is interlaced, you can optionally enable hard telecine (HARD) to create a smoother picture. When you keep the default value, None (NONE), MediaConvert does a standard frame rate conversion to 29.97 without doing anything with the field polarity to create a smoother picture.
        public let telecine: ProresTelecine?

        public init(codecProfile: ProresCodecProfile? = nil, framerateControl: ProresFramerateControl? = nil, framerateConversionAlgorithm: ProresFramerateConversionAlgorithm? = nil, framerateDenominator: Int? = nil, framerateNumerator: Int? = nil, interlaceMode: ProresInterlaceMode? = nil, parControl: ProresParControl? = nil, parDenominator: Int? = nil, parNumerator: Int? = nil, scanTypeConversionMode: ProresScanTypeConversionMode? = nil, slowPal: ProresSlowPal? = nil, telecine: ProresTelecine? = nil) {
            self.codecProfile = codecProfile
            self.framerateControl = framerateControl
            self.framerateConversionAlgorithm = framerateConversionAlgorithm
            self.framerateDenominator = framerateDenominator
            self.framerateNumerator = framerateNumerator
            self.interlaceMode = interlaceMode
            self.parControl = parControl
            self.parDenominator = parDenominator
            self.parNumerator = parNumerator
            self.scanTypeConversionMode = scanTypeConversionMode
            self.slowPal = slowPal
            self.telecine = telecine
        }

        public func validate(name: String) throws {
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, max: 2_147_483_647)
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, min: 1)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, max: 2_147_483_647)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, min: 1)
            try self.validate(self.parDenominator, name: "parDenominator", parent: name, max: 2_147_483_647)
            try self.validate(self.parDenominator, name: "parDenominator", parent: name, min: 1)
            try self.validate(self.parNumerator, name: "parNumerator", parent: name, max: 2_147_483_647)
            try self.validate(self.parNumerator, name: "parNumerator", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case codecProfile
            case framerateControl
            case framerateConversionAlgorithm
            case framerateDenominator
            case framerateNumerator
            case interlaceMode
            case parControl
            case parDenominator
            case parNumerator
            case scanTypeConversionMode
            case slowPal
            case telecine
        }
    }

    public struct Queue: AWSDecodableShape {
        /// An identifier for this resource that is unique within all of AWS.
        public let arn: String?
        /// The timestamp in epoch seconds for when you created the queue.
        @OptionalCustomCoding<UnixEpochDateCoder>
        public var createdAt: Date?
        /// An optional description that you create for each queue.
        public let description: String?
        /// The timestamp in epoch seconds for when you most recently updated the queue.
        @OptionalCustomCoding<UnixEpochDateCoder>
        public var lastUpdated: Date?
        /// A name that you create for each queue. Each name must be unique within your account.
        public let name: String
        /// Specifies whether the pricing plan for the queue is on-demand or reserved. For on-demand, you pay per minute, billed in increments of .01 minute. For reserved, you pay for the transcoding capacity of the entire queue, regardless of how much or how little you use it. Reserved pricing requires a 12-month commitment.
        public let pricingPlan: PricingPlan?
        /// The estimated number of jobs with a PROGRESSING status.
        public let progressingJobsCount: Int?
        /// Details about the pricing plan for your reserved queue. Required for reserved queues and not applicable to on-demand queues.
        public let reservationPlan: ReservationPlan?
        /// Queues can be ACTIVE or PAUSED. If you pause a queue, the service won't begin processing jobs in that queue. Jobs that are running when you pause the queue continue to run until they finish or result in an error.
        public let status: QueueStatus?
        /// The estimated number of jobs with a SUBMITTED status.
        public let submittedJobsCount: Int?
        /// Specifies whether this on-demand queue is system or custom. System queues are built in. You can't modify or delete system queues. You can create and modify custom queues.
        public let type: `Type`?

        public init(arn: String? = nil, createdAt: Date? = nil, description: String? = nil, lastUpdated: Date? = nil, name: String, pricingPlan: PricingPlan? = nil, progressingJobsCount: Int? = nil, reservationPlan: ReservationPlan? = nil, status: QueueStatus? = nil, submittedJobsCount: Int? = nil, type: `Type`? = nil) {
            self.arn = arn
            self.createdAt = createdAt
            self.description = description
            self.lastUpdated = lastUpdated
            self.name = name
            self.pricingPlan = pricingPlan
            self.progressingJobsCount = progressingJobsCount
            self.reservationPlan = reservationPlan
            self.status = status
            self.submittedJobsCount = submittedJobsCount
            self.type = type
        }

        private enum CodingKeys: String, CodingKey {
            case arn
            case createdAt
            case description
            case lastUpdated
            case name
            case pricingPlan
            case progressingJobsCount
            case reservationPlan
            case status
            case submittedJobsCount
            case type
        }
    }

    public struct QueueTransition: AWSDecodableShape {
        /// The queue that the job was on after the transition.
        public let destinationQueue: String?
        /// The queue that the job was on before the transition.
        public let sourceQueue: String?
        /// The time, in Unix epoch format, that the job moved from the source queue to the destination queue.
        @OptionalCustomCoding<UnixEpochDateCoder>
        public var timestamp: Date?

        public init(destinationQueue: String? = nil, sourceQueue: String? = nil, timestamp: Date? = nil) {
            self.destinationQueue = destinationQueue
            self.sourceQueue = sourceQueue
            self.timestamp = timestamp
        }

        private enum CodingKeys: String, CodingKey {
            case destinationQueue
            case sourceQueue
            case timestamp
        }
    }

    public struct Rectangle: AWSEncodableShape & AWSDecodableShape {
        /// Height of rectangle in pixels. Specify only even numbers.
        public let height: Int?
        /// Width of rectangle in pixels. Specify only even numbers.
        public let width: Int?
        /// The distance, in pixels, between the rectangle and the left edge of the video frame. Specify only even numbers.
        public let x: Int?
        /// The distance, in pixels, between the rectangle and the top edge of the video frame. Specify only even numbers.
        public let y: Int?

        public init(height: Int? = nil, width: Int? = nil, x: Int? = nil, y: Int? = nil) {
            self.height = height
            self.width = width
            self.x = x
            self.y = y
        }

        public func validate(name: String) throws {
            try self.validate(self.height, name: "height", parent: name, max: 2_147_483_647)
            try self.validate(self.height, name: "height", parent: name, min: 2)
            try self.validate(self.width, name: "width", parent: name, max: 2_147_483_647)
            try self.validate(self.width, name: "width", parent: name, min: 2)
            try self.validate(self.x, name: "x", parent: name, max: 2_147_483_647)
            try self.validate(self.x, name: "x", parent: name, min: 0)
            try self.validate(self.y, name: "y", parent: name, max: 2_147_483_647)
            try self.validate(self.y, name: "y", parent: name, min: 0)
        }

        private enum CodingKeys: String, CodingKey {
            case height
            case width
            case x
            case y
        }
    }

    public struct RemixSettings: AWSEncodableShape & AWSDecodableShape {
        /// Channel mapping (ChannelMapping) contains the group of fields that hold the remixing value for each channel, in dB. Specify remix values to indicate how much of the content from your input audio channel you want in your output audio channels. Each instance of the InputChannels or InputChannelsFineTune array specifies these values for one output channel. Use one instance of this array for each output channel. In the console, each array corresponds to a column in the graphical depiction of the mapping matrix. The rows of the graphical matrix correspond to input channels. Valid values are within the range from -60 (mute) through 6. A setting of 0 passes the input channel unchanged to the output channel (no attenuation or amplification). Use InputChannels or InputChannelsFineTune to specify your remix values. Don't use both.
        public let channelMapping: ChannelMapping?
        /// Specify the number of audio channels from your input that you want to use in your output. With remixing, you might combine or split the data in these channels, so the number of channels in your final output might be different. If you are doing both input channel mapping and output channel mapping, the number of output channels in your input mapping must be the same as the number of input channels in your output mapping.
        public let channelsIn: Int?
        /// Specify the number of channels in this output after remixing. Valid values: 1, 2, 4, 6, 8... 64. (1 and even numbers to 64.) If you are doing both input channel mapping and output channel mapping, the number of output channels in your input mapping must be the same as the number of input channels in your output mapping.
        public let channelsOut: Int?

        public init(channelMapping: ChannelMapping? = nil, channelsIn: Int? = nil, channelsOut: Int? = nil) {
            self.channelMapping = channelMapping
            self.channelsIn = channelsIn
            self.channelsOut = channelsOut
        }

        public func validate(name: String) throws {
            try self.channelMapping?.validate(name: "\(name).channelMapping")
            try self.validate(self.channelsIn, name: "channelsIn", parent: name, max: 64)
            try self.validate(self.channelsIn, name: "channelsIn", parent: name, min: 1)
            try self.validate(self.channelsOut, name: "channelsOut", parent: name, max: 64)
            try self.validate(self.channelsOut, name: "channelsOut", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case channelMapping
            case channelsIn
            case channelsOut
        }
    }

    public struct ReservationPlan: AWSDecodableShape {
        /// The length of the term of your reserved queue pricing plan commitment.
        public let commitment: Commitment?
        /// The timestamp in epoch seconds for when the current pricing plan term for this reserved queue expires.
        @OptionalCustomCoding<UnixEpochDateCoder>
        public var expiresAt: Date?
        /// The timestamp in epoch seconds for when you set up the current pricing plan for this reserved queue.
        @OptionalCustomCoding<UnixEpochDateCoder>
        public var purchasedAt: Date?
        /// Specifies whether the term of your reserved queue pricing plan is automatically extended (AUTO_RENEW) or expires (EXPIRE) at the end of the term.
        public let renewalType: RenewalType?
        /// Specifies the number of reserved transcode slots (RTS) for this queue. The number of RTS determines how many jobs the queue can process in parallel; each RTS can process one job at a time. When you increase this number, you extend your existing commitment with a new 12-month commitment for a larger number of RTS. The new commitment begins when you purchase the additional capacity. You can't decrease the number of RTS in your reserved queue.
        public let reservedSlots: Int?
        /// Specifies whether the pricing plan for your reserved queue is ACTIVE or EXPIRED.
        public let status: ReservationPlanStatus?

        public init(commitment: Commitment? = nil, expiresAt: Date? = nil, purchasedAt: Date? = nil, renewalType: RenewalType? = nil, reservedSlots: Int? = nil, status: ReservationPlanStatus? = nil) {
            self.commitment = commitment
            self.expiresAt = expiresAt
            self.purchasedAt = purchasedAt
            self.renewalType = renewalType
            self.reservedSlots = reservedSlots
            self.status = status
        }

        private enum CodingKeys: String, CodingKey {
            case commitment
            case expiresAt
            case purchasedAt
            case renewalType
            case reservedSlots
            case status
        }
    }

    public struct ReservationPlanSettings: AWSEncodableShape {
        /// The length of the term of your reserved queue pricing plan commitment.
        public let commitment: Commitment
        /// Specifies whether the term of your reserved queue pricing plan is automatically extended (AUTO_RENEW) or expires (EXPIRE) at the end of the term. When your term is auto renewed, you extend your commitment by 12 months from the auto renew date. You can cancel this commitment.
        public let renewalType: RenewalType
        /// Specifies the number of reserved transcode slots (RTS) for this queue. The number of RTS determines how many jobs the queue can process in parallel; each RTS can process one job at a time. You can't decrease the number of RTS in your reserved queue. You can increase the number of RTS by extending your existing commitment with a new 12-month commitment for the larger number. The new commitment begins when you purchase the additional capacity. You can't cancel your commitment or revert to your original commitment after you increase the capacity.
        public let reservedSlots: Int

        public init(commitment: Commitment, renewalType: RenewalType, reservedSlots: Int) {
            self.commitment = commitment
            self.renewalType = renewalType
            self.reservedSlots = reservedSlots
        }

        private enum CodingKeys: String, CodingKey {
            case commitment
            case renewalType
            case reservedSlots
        }
    }

    public struct ResourceTags: AWSDecodableShape {
        /// The Amazon Resource Name (ARN) of the resource.
        public let arn: String?
        /// The tags for the resource.
        public let tags: [String: String]?

        public init(arn: String? = nil, tags: [String: String]? = nil) {
            self.arn = arn
            self.tags = tags
        }

        private enum CodingKeys: String, CodingKey {
            case arn
            case tags
        }
    }

    public struct S3DestinationAccessControl: AWSEncodableShape & AWSDecodableShape {
        /// Choose an Amazon S3 canned ACL for MediaConvert to apply to this output.
        public let cannedAcl: S3ObjectCannedAcl?

        public init(cannedAcl: S3ObjectCannedAcl? = nil) {
            self.cannedAcl = cannedAcl
        }

        private enum CodingKeys: String, CodingKey {
            case cannedAcl
        }
    }

    public struct S3DestinationSettings: AWSEncodableShape & AWSDecodableShape {
        /// Optional. Have MediaConvert automatically apply Amazon S3 access control for the outputs in this output group. When you don't use this setting, S3 automatically applies the default access control list PRIVATE.
        public let accessControl: S3DestinationAccessControl?
        /// Settings for how your job outputs are encrypted as they are uploaded to Amazon S3.
        public let encryption: S3EncryptionSettings?

        public init(accessControl: S3DestinationAccessControl? = nil, encryption: S3EncryptionSettings? = nil) {
            self.accessControl = accessControl
            self.encryption = encryption
        }

        public func validate(name: String) throws {
            try self.encryption?.validate(name: "\(name).encryption")
        }

        private enum CodingKeys: String, CodingKey {
            case accessControl
            case encryption
        }
    }

    public struct S3EncryptionSettings: AWSEncodableShape & AWSDecodableShape {
        /// Specify how you want your data keys managed. AWS uses data keys to encrypt your content. AWS also encrypts the data keys themselves, using a customer master key (CMK), and then stores the encrypted data keys alongside your encrypted content. Use this setting to specify which AWS service manages the CMK. For simplest set up, choose Amazon S3 (SERVER_SIDE_ENCRYPTION_S3). If you want your master key to be managed by AWS Key Management Service (KMS), choose AWS KMS (SERVER_SIDE_ENCRYPTION_KMS). By default, when you choose AWS KMS, KMS uses the AWS managed customer master key (CMK) associated with Amazon S3 to encrypt your data keys. You can optionally choose to specify a different, customer managed CMK. Do so by specifying the Amazon Resource Name (ARN) of the key for the setting  KMS ARN (kmsKeyArn).
        public let encryptionType: S3ServerSideEncryptionType?
        /// Optionally, specify the customer master key (CMK) that you want to use to encrypt the data key that AWS uses to encrypt your output content. Enter the Amazon Resource Name (ARN) of the CMK. To use this setting, you must also set Server-side encryption (S3ServerSideEncryptionType) to AWS KMS (SERVER_SIDE_ENCRYPTION_KMS). If you set Server-side encryption to AWS KMS but don't specify a CMK here, AWS uses the AWS managed CMK associated with Amazon S3.
        public let kmsKeyArn: String?

        public init(encryptionType: S3ServerSideEncryptionType? = nil, kmsKeyArn: String? = nil) {
            self.encryptionType = encryptionType
            self.kmsKeyArn = kmsKeyArn
        }

        public func validate(name: String) throws {
            try self.validate(self.kmsKeyArn, name: "kmsKeyArn", parent: name, pattern: "^arn:aws(-us-gov|-cn)?:kms:[a-z-]{2,6}-(east|west|central|((north|south)(east|west)?))-[1-9]{1,2}:\\d{12}:key/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$")
        }

        private enum CodingKeys: String, CodingKey {
            case encryptionType
            case kmsKeyArn
        }
    }

    public struct SccDestinationSettings: AWSEncodableShape & AWSDecodableShape {
        /// Set Framerate (SccDestinationFramerate) to make sure that the captions and the video are synchronized in the output. Specify a frame rate that matches the frame rate of the associated video. If the video frame rate is 29.97, choose 29.97 dropframe (FRAMERATE_29_97_DROPFRAME) only if the video has video_insertion=true and drop_frame_timecode=true; otherwise, choose 29.97 non-dropframe (FRAMERATE_29_97_NON_DROPFRAME).
        public let framerate: SccDestinationFramerate?

        public init(framerate: SccDestinationFramerate? = nil) {
            self.framerate = framerate
        }

        private enum CodingKeys: String, CodingKey {
            case framerate
        }
    }

    public struct SpekeKeyProvider: AWSEncodableShape & AWSDecodableShape {
        /// If you want your key provider to encrypt the content keys that it provides to MediaConvert, set up a certificate with a master key using AWS Certificate Manager. Specify the certificate's Amazon Resource Name (ARN) here.
        public let certificateArn: String?
        /// Specify the resource ID that your SPEKE-compliant key provider uses to identify this content.
        public let resourceId: String?
        /// Relates to SPEKE implementation. DRM system identifiers. DASH output groups support a max of two system ids. Other group types support one system id. See
        ///  https://dashif.org/identifiers/content_protection/ for more details.
        public let systemIds: [String]?
        /// Specify the URL to the key server that your SPEKE-compliant DRM key provider uses to provide keys for encrypting your content.
        public let url: String?

        public init(certificateArn: String? = nil, resourceId: String? = nil, systemIds: [String]? = nil, url: String? = nil) {
            self.certificateArn = certificateArn
            self.resourceId = resourceId
            self.systemIds = systemIds
            self.url = url
        }

        public func validate(name: String) throws {
            try self.validate(self.certificateArn, name: "certificateArn", parent: name, pattern: "^arn:aws(-us-gov)?:acm:")
            try self.systemIds?.forEach {
                try validate($0, name: "systemIds[]", parent: name, pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$")
            }
            try self.validate(self.url, name: "url", parent: name, pattern: "^https:\\/\\/")
        }

        private enum CodingKeys: String, CodingKey {
            case certificateArn
            case resourceId
            case systemIds
            case url
        }
    }

    public struct SpekeKeyProviderCmaf: AWSEncodableShape & AWSDecodableShape {
        /// If you want your key provider to encrypt the content keys that it provides to MediaConvert, set up a certificate with a master key using AWS Certificate Manager. Specify the certificate's Amazon Resource Name (ARN) here.
        public let certificateArn: String?
        /// Specify the DRM system IDs that you want signaled in the DASH manifest that MediaConvert creates as part of this CMAF package. The DASH manifest can currently signal up to three system IDs. For more information, see https://dashif.org/identifiers/content_protection/.
        public let dashSignaledSystemIds: [String]?
        /// Specify the DRM system ID that you want signaled in the HLS manifest that MediaConvert creates as part of this CMAF package. The HLS manifest can currently signal only one system ID. For more information, see https://dashif.org/identifiers/content_protection/.
        public let hlsSignaledSystemIds: [String]?
        /// Specify the resource ID that your SPEKE-compliant key provider uses to identify this content.
        public let resourceId: String?
        /// Specify the URL to the key server that your SPEKE-compliant DRM key provider uses to provide keys for encrypting your content.
        public let url: String?

        public init(certificateArn: String? = nil, dashSignaledSystemIds: [String]? = nil, hlsSignaledSystemIds: [String]? = nil, resourceId: String? = nil, url: String? = nil) {
            self.certificateArn = certificateArn
            self.dashSignaledSystemIds = dashSignaledSystemIds
            self.hlsSignaledSystemIds = hlsSignaledSystemIds
            self.resourceId = resourceId
            self.url = url
        }

        public func validate(name: String) throws {
            try self.validate(self.certificateArn, name: "certificateArn", parent: name, pattern: "^arn:aws(-us-gov)?:acm:")
            try self.dashSignaledSystemIds?.forEach {
                try validate($0, name: "dashSignaledSystemIds[]", parent: name, max: 36)
                try validate($0, name: "dashSignaledSystemIds[]", parent: name, min: 36)
                try validate($0, name: "dashSignaledSystemIds[]", parent: name, pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$")
            }
            try self.hlsSignaledSystemIds?.forEach {
                try validate($0, name: "hlsSignaledSystemIds[]", parent: name, max: 36)
                try validate($0, name: "hlsSignaledSystemIds[]", parent: name, min: 36)
                try validate($0, name: "hlsSignaledSystemIds[]", parent: name, pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$")
            }
            try self.validate(self.resourceId, name: "resourceId", parent: name, pattern: "^[\\w-]+$")
            try self.validate(self.url, name: "url", parent: name, pattern: "^https:\\/\\/")
        }

        private enum CodingKeys: String, CodingKey {
            case certificateArn
            case dashSignaledSystemIds
            case hlsSignaledSystemIds
            case resourceId
            case url
        }
    }

    public struct StaticKeyProvider: AWSEncodableShape & AWSDecodableShape {
        /// Relates to DRM implementation. Sets the value of the KEYFORMAT attribute. Must be 'identity' or a reverse DNS string. May be omitted to indicate an implicit value of 'identity'.
        public let keyFormat: String?
        /// Relates to DRM implementation. Either a single positive integer version value or a slash delimited list of version values (1/2/3).
        public let keyFormatVersions: String?
        /// Relates to DRM implementation. Use a 32-character hexidecimal string to specify Key Value (StaticKeyValue).
        public let staticKeyValue: String?
        /// Relates to DRM implementation. The location of the license server used for protecting content.
        public let url: String?

        public init(keyFormat: String? = nil, keyFormatVersions: String? = nil, staticKeyValue: String? = nil, url: String? = nil) {
            self.keyFormat = keyFormat
            self.keyFormatVersions = keyFormatVersions
            self.staticKeyValue = staticKeyValue
            self.url = url
        }

        public func validate(name: String) throws {
            try self.validate(self.keyFormat, name: "keyFormat", parent: name, pattern: "^(identity|[A-Za-z]{2,6}(\\.[A-Za-z0-9-]{1,63})+)$")
            try self.validate(self.keyFormatVersions, name: "keyFormatVersions", parent: name, pattern: "^(\\d+(\\/\\d+)*)$")
            try self.validate(self.staticKeyValue, name: "staticKeyValue", parent: name, pattern: "^[A-Za-z0-9]{32}$")
        }

        private enum CodingKeys: String, CodingKey {
            case keyFormat
            case keyFormatVersions
            case staticKeyValue
            case url
        }
    }

    public struct TagResourceRequest: AWSEncodableShape {
        /// The Amazon Resource Name (ARN) of the resource that you want to tag. To get the ARN, send a GET request with the resource name.
        public let arn: String
        /// The tags that you want to add to the resource. You can tag resources with a key-value pair or with only a key.
        public let tags: [String: String]

        public init(arn: String, tags: [String: String]) {
            self.arn = arn
            self.tags = tags
        }

        private enum CodingKeys: String, CodingKey {
            case arn
            case tags
        }
    }

    public struct TagResourceResponse: AWSDecodableShape {
        public init() {}
    }

    public struct TeletextDestinationSettings: AWSEncodableShape & AWSDecodableShape {
        /// Set pageNumber to the Teletext page number for the destination captions for this output. This value must be a three-digit hexadecimal string; strings ending in -FF are invalid. If you are passing through the entire set of Teletext data, do not use this field.
        public let pageNumber: String?
        /// Specify the page types for this Teletext page. If you don't specify a value here, the service sets the page type to the default value Subtitle (PAGE_TYPE_SUBTITLE). If you pass through the entire set of Teletext data, don't use this field. When you pass through a set of Teletext pages, your output has the same page types as your input.
        public let pageTypes: [TeletextPageType]?

        public init(pageNumber: String? = nil, pageTypes: [TeletextPageType]? = nil) {
            self.pageNumber = pageNumber
            self.pageTypes = pageTypes
        }

        public func validate(name: String) throws {
            try self.validate(self.pageNumber, name: "pageNumber", parent: name, max: 3)
            try self.validate(self.pageNumber, name: "pageNumber", parent: name, min: 3)
            try self.validate(self.pageNumber, name: "pageNumber", parent: name, pattern: "^[1-8][0-9a-fA-F][0-9a-eA-E]$")
        }

        private enum CodingKeys: String, CodingKey {
            case pageNumber
            case pageTypes
        }
    }

    public struct TeletextSourceSettings: AWSEncodableShape & AWSDecodableShape {
        /// Use Page Number (PageNumber) to specify the three-digit hexadecimal page number that will be used for Teletext captions. Do not use this setting if you are passing through teletext from the input source to output.
        public let pageNumber: String?

        public init(pageNumber: String? = nil) {
            self.pageNumber = pageNumber
        }

        public func validate(name: String) throws {
            try self.validate(self.pageNumber, name: "pageNumber", parent: name, max: 3)
            try self.validate(self.pageNumber, name: "pageNumber", parent: name, min: 3)
            try self.validate(self.pageNumber, name: "pageNumber", parent: name, pattern: "^[1-8][0-9a-fA-F][0-9a-eA-E]$")
        }

        private enum CodingKeys: String, CodingKey {
            case pageNumber
        }
    }

    public struct TimecodeBurnin: AWSEncodableShape & AWSDecodableShape {
        /// Use Font Size (FontSize) to set the font size of any burned-in timecode. Valid values are 10, 16, 32, 48.
        public let fontSize: Int?
        /// Use Position (Position) under under Timecode burn-in (TimecodeBurnIn) to specify the location the burned-in timecode on output video.
        public let position: TimecodeBurninPosition?
        /// Use Prefix (Prefix) to place ASCII characters before any burned-in timecode. For example, a prefix of "EZ-" will result in the timecode "EZ-00:00:00:00". Provide either the characters themselves or the ASCII code equivalents. The supported range of characters is 0x20 through 0x7e. This includes letters, numbers, and all special characters represented on a standard English keyboard.
        public let prefix: String?

        public init(fontSize: Int? = nil, position: TimecodeBurninPosition? = nil, prefix: String? = nil) {
            self.fontSize = fontSize
            self.position = position
            self.prefix = prefix
        }

        public func validate(name: String) throws {
            try self.validate(self.fontSize, name: "fontSize", parent: name, max: 48)
            try self.validate(self.fontSize, name: "fontSize", parent: name, min: 10)
            try self.validate(self.prefix, name: "prefix", parent: name, pattern: "^[ -~]+$")
        }

        private enum CodingKeys: String, CodingKey {
            case fontSize
            case position
            case prefix
        }
    }

    public struct TimecodeConfig: AWSEncodableShape & AWSDecodableShape {
        /// If you use an editing platform that relies on an anchor timecode, use Anchor Timecode (Anchor) to specify a timecode that will match the input video frame to the output video frame. Use 24-hour format with frame number, (HH:MM:SS:FF) or (HH:MM:SS;FF). This setting ignores frame rate conversion. System behavior for Anchor Timecode varies depending on your setting for Source (TimecodeSource). * If Source (TimecodeSource) is set to Specified Start (SPECIFIEDSTART), the first input frame is the specified value in Start Timecode (Start). Anchor Timecode (Anchor) and Start Timecode (Start) are used calculate output timecode. * If Source (TimecodeSource) is set to Start at 0 (ZEROBASED)  the  first frame is 00:00:00:00. * If Source (TimecodeSource) is set to Embedded (EMBEDDED), the  first frame is the timecode value on the first input frame of the input.
        public let anchor: String?
        /// Use Source (TimecodeSource) to set how timecodes are handled within this job. To make sure that your video, audio, captions, and markers are synchronized and that time-based features, such as image inserter, work correctly, choose the Timecode source option that matches your assets. All timecodes are in a 24-hour format with frame number (HH:MM:SS:FF). * Embedded (EMBEDDED) - Use the timecode that is in the input video. If no embedded timecode is in the source, the service will use Start at 0 (ZEROBASED) instead. * Start at 0 (ZEROBASED) - Set the timecode of the initial frame to 00:00:00:00. * Specified Start (SPECIFIEDSTART) - Set the timecode of the initial frame to a value other than zero. You use Start timecode (Start) to provide this value.
        public let source: TimecodeSource?
        /// Only use when you set Source (TimecodeSource) to Specified start (SPECIFIEDSTART). Use Start timecode (Start) to specify the timecode for the initial frame. Use 24-hour format with frame number, (HH:MM:SS:FF) or (HH:MM:SS;FF).
        public let start: String?
        /// Only applies to outputs that support program-date-time stamp. Use Timestamp offset (TimestampOffset) to overwrite the timecode date without affecting the time and frame number. Provide the new date as a string in the format "yyyy-mm-dd".  To use Time stamp offset, you must also enable Insert program-date-time (InsertProgramDateTime) in the output settings. For example, if the date part of your timecodes is 2002-1-25 and you want to change it to one year later, set Timestamp offset (TimestampOffset) to 2003-1-25.
        public let timestampOffset: String?

        public init(anchor: String? = nil, source: TimecodeSource? = nil, start: String? = nil, timestampOffset: String? = nil) {
            self.anchor = anchor
            self.source = source
            self.start = start
            self.timestampOffset = timestampOffset
        }

        public func validate(name: String) throws {
            try self.validate(self.anchor, name: "anchor", parent: name, pattern: "^([01][0-9]|2[0-4]):[0-5][0-9]:[0-5][0-9][:;][0-9]{2}$")
            try self.validate(self.start, name: "start", parent: name, pattern: "^([01][0-9]|2[0-4]):[0-5][0-9]:[0-5][0-9][:;][0-9]{2}$")
            try self.validate(self.timestampOffset, name: "timestampOffset", parent: name, pattern: "^([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$")
        }

        private enum CodingKeys: String, CodingKey {
            case anchor
            case source
            case start
            case timestampOffset
        }
    }

    public struct TimedMetadataInsertion: AWSEncodableShape & AWSDecodableShape {
        /// Id3Insertions contains the array of Id3Insertion instances.
        public let id3Insertions: [Id3Insertion]?

        public init(id3Insertions: [Id3Insertion]? = nil) {
            self.id3Insertions = id3Insertions
        }

        public func validate(name: String) throws {
            try self.id3Insertions?.forEach {
                try $0.validate(name: "\(name).id3Insertions[]")
            }
        }

        private enum CodingKeys: String, CodingKey {
            case id3Insertions
        }
    }

    public struct Timing: AWSDecodableShape {
        /// The time, in Unix epoch format, that the transcoding job finished
        @OptionalCustomCoding<UnixEpochDateCoder>
        public var finishTime: Date?
        /// The time, in Unix epoch format, that transcoding for the job began.
        @OptionalCustomCoding<UnixEpochDateCoder>
        public var startTime: Date?
        /// The time, in Unix epoch format, that you submitted the job.
        @OptionalCustomCoding<UnixEpochDateCoder>
        public var submitTime: Date?

        public init(finishTime: Date? = nil, startTime: Date? = nil, submitTime: Date? = nil) {
            self.finishTime = finishTime
            self.startTime = startTime
            self.submitTime = submitTime
        }

        private enum CodingKeys: String, CodingKey {
            case finishTime
            case startTime
            case submitTime
        }
    }

    public struct TrackSourceSettings: AWSEncodableShape & AWSDecodableShape {
        /// Use this setting to select a single captions track from a source. Track numbers correspond to the order in the captions source file. For IMF sources, track numbering is based on the order that the captions appear in the CPL. For example, use 1 to select the captions asset that is listed first in the CPL. To include more than one captions track in your job outputs, create multiple input captions selectors. Specify one track per selector.
        public let trackNumber: Int?

        public init(trackNumber: Int? = nil) {
            self.trackNumber = trackNumber
        }

        public func validate(name: String) throws {
            try self.validate(self.trackNumber, name: "trackNumber", parent: name, max: 2_147_483_647)
            try self.validate(self.trackNumber, name: "trackNumber", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case trackNumber
        }
    }

    public struct TtmlDestinationSettings: AWSEncodableShape & AWSDecodableShape {
        /// Pass through style and position information from a TTML-like input source (TTML, SMPTE-TT) to the TTML output.
        public let stylePassthrough: TtmlStylePassthrough?

        public init(stylePassthrough: TtmlStylePassthrough? = nil) {
            self.stylePassthrough = stylePassthrough
        }

        private enum CodingKeys: String, CodingKey {
            case stylePassthrough
        }
    }

    public struct UntagResourceRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "arn", location: .uri(locationName: "arn"))
        ]

        /// The Amazon Resource Name (ARN) of the resource that you want to remove tags from. To get the ARN, send a GET request with the resource name.
        public let arn: String
        /// The keys of the tags that you want to remove from the resource.
        public let tagKeys: [String]?

        public init(arn: String, tagKeys: [String]? = nil) {
            self.arn = arn
            self.tagKeys = tagKeys
        }

        private enum CodingKeys: String, CodingKey {
            case tagKeys
        }
    }

    public struct UntagResourceResponse: AWSDecodableShape {
        public init() {}
    }

    public struct UpdateJobTemplateRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "name", location: .uri(locationName: "name"))
        ]

        /// Accelerated transcoding can significantly speed up jobs with long, visually complex content. Outputs that use this feature incur pro-tier pricing. For information about feature limitations, see the AWS Elemental MediaConvert User Guide.
        public let accelerationSettings: AccelerationSettings?
        /// The new category for the job template, if you are changing it.
        public let category: String?
        /// The new description for the job template, if you are changing it.
        public let description: String?
        /// Optional list of hop destinations.
        public let hopDestinations: [HopDestination]?
        /// The name of the job template you are modifying
        public let name: String
        /// Specify the relative priority for this job. In any given queue, the service begins processing the job with the highest value first. When more than one job has the same priority, the service begins processing the job that you submitted first. If you don't specify a priority, the service uses the default value 0.
        public let priority: Int?
        /// The new queue for the job template, if you are changing it.
        public let queue: String?
        /// JobTemplateSettings contains all the transcode settings saved in the template that will be applied to jobs created from it.
        public let settings: JobTemplateSettings?
        /// Specify how often MediaConvert sends STATUS_UPDATE events to Amazon CloudWatch Events. Set the interval, in seconds, between status updates. MediaConvert sends an update at this interval from the time the service begins processing your job to the time it completes the transcode or encounters an error.
        public let statusUpdateInterval: StatusUpdateInterval?

        public init(accelerationSettings: AccelerationSettings? = nil, category: String? = nil, description: String? = nil, hopDestinations: [HopDestination]? = nil, name: String, priority: Int? = nil, queue: String? = nil, settings: JobTemplateSettings? = nil, statusUpdateInterval: StatusUpdateInterval? = nil) {
            self.accelerationSettings = accelerationSettings
            self.category = category
            self.description = description
            self.hopDestinations = hopDestinations
            self.name = name
            self.priority = priority
            self.queue = queue
            self.settings = settings
            self.statusUpdateInterval = statusUpdateInterval
        }

        public func validate(name: String) throws {
            try self.hopDestinations?.forEach {
                try $0.validate(name: "\(name).hopDestinations[]")
            }
            try self.validate(self.priority, name: "priority", parent: name, max: 50)
            try self.validate(self.priority, name: "priority", parent: name, min: -50)
            try self.settings?.validate(name: "\(name).settings")
        }

        private enum CodingKeys: String, CodingKey {
            case accelerationSettings
            case category
            case description
            case hopDestinations
            case priority
            case queue
            case settings
            case statusUpdateInterval
        }
    }

    public struct UpdateJobTemplateResponse: AWSDecodableShape {
        /// A job template is a pre-made set of encoding instructions that you can use to quickly create a job.
        public let jobTemplate: JobTemplate?

        public init(jobTemplate: JobTemplate? = nil) {
            self.jobTemplate = jobTemplate
        }

        private enum CodingKeys: String, CodingKey {
            case jobTemplate
        }
    }

    public struct UpdatePresetRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "name", location: .uri(locationName: "name"))
        ]

        /// The new category for the preset, if you are changing it.
        public let category: String?
        /// The new description for the preset, if you are changing it.
        public let description: String?
        /// The name of the preset you are modifying.
        public let name: String
        /// Settings for preset
        public let settings: PresetSettings?

        public init(category: String? = nil, description: String? = nil, name: String, settings: PresetSettings? = nil) {
            self.category = category
            self.description = description
            self.name = name
            self.settings = settings
        }

        public func validate(name: String) throws {
            try self.settings?.validate(name: "\(name).settings")
        }

        private enum CodingKeys: String, CodingKey {
            case category
            case description
            case settings
        }
    }

    public struct UpdatePresetResponse: AWSDecodableShape {
        /// A preset is a collection of preconfigured media conversion settings that you want MediaConvert to apply to the output during the conversion process.
        public let preset: Preset?

        public init(preset: Preset? = nil) {
            self.preset = preset
        }

        private enum CodingKeys: String, CodingKey {
            case preset
        }
    }

    public struct UpdateQueueRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "name", location: .uri(locationName: "name"))
        ]

        /// The new description for the queue, if you are changing it.
        public let description: String?
        /// The name of the queue that you are modifying.
        public let name: String
        /// The new details of your pricing plan for your reserved queue. When you set up a new pricing plan to replace an expired one, you enter into another 12-month commitment. When you add capacity to your queue by increasing the number of RTS, you extend the term of your commitment to 12 months from when you add capacity. After you make these commitments, you can't cancel them.
        public let reservationPlanSettings: ReservationPlanSettings?
        /// Pause or activate a queue by changing its status between ACTIVE and PAUSED. If you pause a queue, jobs in that queue won't begin. Jobs that are running when you pause the queue continue to run until they finish or result in an error.
        public let status: QueueStatus?

        public init(description: String? = nil, name: String, reservationPlanSettings: ReservationPlanSettings? = nil, status: QueueStatus? = nil) {
            self.description = description
            self.name = name
            self.reservationPlanSettings = reservationPlanSettings
            self.status = status
        }

        private enum CodingKeys: String, CodingKey {
            case description
            case reservationPlanSettings
            case status
        }
    }

    public struct UpdateQueueResponse: AWSDecodableShape {
        /// You can use queues to manage the resources that are available to your AWS account for running multiple transcoding jobs at the same time. If you don't specify a queue, the service sends all jobs through the default queue. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/working-with-queues.html.
        public let queue: Queue?

        public init(queue: Queue? = nil) {
            self.queue = queue
        }

        private enum CodingKeys: String, CodingKey {
            case queue
        }
    }

    public struct Vc3Settings: AWSEncodableShape & AWSDecodableShape {
        /// If you are using the console, use the Framerate setting to specify the frame rate for this output. If you want to keep the same frame rate as the input video, choose Follow source. If you want to do frame rate conversion, choose a frame rate from the dropdown list or choose Custom. The framerates shown in the dropdown list are decimal approximations of fractions. If you choose Custom, specify your frame rate as a fraction. If you are creating your transcoding job specification as a JSON file without the console, use FramerateControl to specify which value the service uses for the frame rate for this output. Choose INITIALIZE_FROM_SOURCE if you want the service to use the frame rate from the input. Choose SPECIFIED if you want the service to use the frame rate you specify in the settings FramerateNumerator and FramerateDenominator.
        public let framerateControl: Vc3FramerateControl?
        /// Choose the method that you want MediaConvert to use when increasing or decreasing the frame rate. We recommend using drop duplicate (DUPLICATE_DROP) for numerically simple conversions, such as 60 fps to 30 fps. For numerically complex conversions, you can use interpolate (INTERPOLATE) to avoid stutter. This results in a smooth picture, but might introduce undesirable video artifacts. For complex frame rate conversions, especially if your source video has already been converted from its original cadence, use FrameFormer (FRAMEFORMER) to do motion-compensated interpolation. FrameFormer chooses the best conversion method frame by frame. Note that using FrameFormer increases the transcoding time and incurs a significant add-on cost.
        public let framerateConversionAlgorithm: Vc3FramerateConversionAlgorithm?
        /// When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example,  24000 / 1001 = 23.976 fps. Use FramerateDenominator to specify the denominator of this fraction. In this example, use 1001 for the value of FramerateDenominator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
        public let framerateDenominator: Int?
        /// When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example,  24000 / 1001 = 23.976 fps. Use FramerateNumerator to specify the numerator of this fraction. In this example, use 24000 for the value of FramerateNumerator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
        public let framerateNumerator: Int?
        /// Optional. Choose the scan line type for this output. If you don't specify a value, MediaConvert will create a progressive output.
        public let interlaceMode: Vc3InterlaceMode?
        /// Use this setting for interlaced outputs, when your output frame rate is half of your input frame rate. In this situation, choose Optimized interlacing (INTERLACED_OPTIMIZE) to create a better quality interlaced output. In this case, each progressive frame from the input corresponds to an interlaced field in the output. Keep the default value, Basic interlacing (INTERLACED), for all other output frame rates. With basic interlacing, MediaConvert performs any frame rate conversion first and then interlaces the frames. When you choose Optimized interlacing and you set your output frame rate to a value that isn't suitable for optimized interlacing, MediaConvert automatically falls back to basic interlacing. Required settings: To use optimized interlacing, you must set Telecine (telecine) to None (NONE) or Soft (SOFT). You can't use optimized interlacing for hard telecine outputs. You must also set Interlace mode (interlaceMode) to a value other than Progressive (PROGRESSIVE).
        public let scanTypeConversionMode: Vc3ScanTypeConversionMode?
        /// Ignore this setting unless your input frame rate is 23.976 or 24 frames per second (fps). Enable slow PAL to create a 25 fps output by relabeling the video frames and resampling your audio. Note that enabling this setting will slightly reduce the duration of your video. Related settings: You must also set Framerate to 25. In your JSON job specification, set (framerateControl) to (SPECIFIED), (framerateNumerator) to 25 and (framerateDenominator) to 1.
        public let slowPal: Vc3SlowPal?
        /// When you do frame rate conversion from 23.976 frames per second (fps) to 29.97 fps, and your output scan type is interlaced, you can optionally enable hard telecine (HARD) to create a smoother picture. When you keep the default value, None (NONE), MediaConvert does a standard frame rate conversion to 29.97 without doing anything with the field polarity to create a smoother picture.
        public let telecine: Vc3Telecine?
        /// Specify the VC3 class to choose the quality characteristics for this output. VC3 class, together with the settings Framerate (framerateNumerator and framerateDenominator) and Resolution (height and width), determine your output bitrate. For example, say that your video resolution is 1920x1080 and your framerate is 29.97. Then Class 145 (CLASS_145) gives you an output with a bitrate of approximately 145 Mbps and Class 220 (CLASS_220) gives you and output with a bitrate of approximately 220 Mbps. VC3 class also specifies the color bit depth of your output.
        public let vc3Class: Vc3Class?

        public init(framerateControl: Vc3FramerateControl? = nil, framerateConversionAlgorithm: Vc3FramerateConversionAlgorithm? = nil, framerateDenominator: Int? = nil, framerateNumerator: Int? = nil, interlaceMode: Vc3InterlaceMode? = nil, scanTypeConversionMode: Vc3ScanTypeConversionMode? = nil, slowPal: Vc3SlowPal? = nil, telecine: Vc3Telecine? = nil, vc3Class: Vc3Class? = nil) {
            self.framerateControl = framerateControl
            self.framerateConversionAlgorithm = framerateConversionAlgorithm
            self.framerateDenominator = framerateDenominator
            self.framerateNumerator = framerateNumerator
            self.interlaceMode = interlaceMode
            self.scanTypeConversionMode = scanTypeConversionMode
            self.slowPal = slowPal
            self.telecine = telecine
            self.vc3Class = vc3Class
        }

        public func validate(name: String) throws {
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, max: 1001)
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, min: 1)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, max: 60000)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, min: 24)
        }

        private enum CodingKeys: String, CodingKey {
            case framerateControl
            case framerateConversionAlgorithm
            case framerateDenominator
            case framerateNumerator
            case interlaceMode
            case scanTypeConversionMode
            case slowPal
            case telecine
            case vc3Class
        }
    }

    public struct VideoCodecSettings: AWSEncodableShape & AWSDecodableShape {
        /// Required when you set Codec, under VideoDescription>CodecSettings to the value AV1.
        public let av1Settings: Av1Settings?
        /// Required when you set your output video codec to AVC-Intra. For more information about the AVC-I settings, see the relevant specification. For detailed information about SD and HD in AVC-I, see https://ieeexplore.ieee.org/document/7290936. For information about 4K/2K in AVC-I, see https://pro-av.panasonic.net/en/avc-ultra/AVC-ULTRAoverview.pdf.
        public let avcIntraSettings: AvcIntraSettings?
        /// Specifies the video codec. This must be equal to one of the enum values defined by the object  VideoCodec.
        public let codec: VideoCodec?
        /// Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the value FRAME_CAPTURE.
        public let frameCaptureSettings: FrameCaptureSettings?
        /// Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the value H_264.
        public let h264Settings: H264Settings?
        /// Settings for H265 codec
        public let h265Settings: H265Settings?
        /// Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the value MPEG2.
        public let mpeg2Settings: Mpeg2Settings?
        /// Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the value PRORES.
        public let proresSettings: ProresSettings?
        /// Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the value VC3
        public let vc3Settings: Vc3Settings?
        /// Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the value VP8.
        public let vp8Settings: Vp8Settings?
        /// Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the value VP9.
        public let vp9Settings: Vp9Settings?

        public init(av1Settings: Av1Settings? = nil, avcIntraSettings: AvcIntraSettings? = nil, codec: VideoCodec? = nil, frameCaptureSettings: FrameCaptureSettings? = nil, h264Settings: H264Settings? = nil, h265Settings: H265Settings? = nil, mpeg2Settings: Mpeg2Settings? = nil, proresSettings: ProresSettings? = nil, vc3Settings: Vc3Settings? = nil, vp8Settings: Vp8Settings? = nil, vp9Settings: Vp9Settings? = nil) {
            self.av1Settings = av1Settings
            self.avcIntraSettings = avcIntraSettings
            self.codec = codec
            self.frameCaptureSettings = frameCaptureSettings
            self.h264Settings = h264Settings
            self.h265Settings = h265Settings
            self.mpeg2Settings = mpeg2Settings
            self.proresSettings = proresSettings
            self.vc3Settings = vc3Settings
            self.vp8Settings = vp8Settings
            self.vp9Settings = vp9Settings
        }

        public func validate(name: String) throws {
            try self.av1Settings?.validate(name: "\(name).av1Settings")
            try self.avcIntraSettings?.validate(name: "\(name).avcIntraSettings")
            try self.frameCaptureSettings?.validate(name: "\(name).frameCaptureSettings")
            try self.h264Settings?.validate(name: "\(name).h264Settings")
            try self.h265Settings?.validate(name: "\(name).h265Settings")
            try self.mpeg2Settings?.validate(name: "\(name).mpeg2Settings")
            try self.proresSettings?.validate(name: "\(name).proresSettings")
            try self.vc3Settings?.validate(name: "\(name).vc3Settings")
            try self.vp8Settings?.validate(name: "\(name).vp8Settings")
            try self.vp9Settings?.validate(name: "\(name).vp9Settings")
        }

        private enum CodingKeys: String, CodingKey {
            case av1Settings
            case avcIntraSettings
            case codec
            case frameCaptureSettings
            case h264Settings
            case h265Settings
            case mpeg2Settings
            case proresSettings
            case vc3Settings
            case vp8Settings
            case vp9Settings
        }
    }

    public struct VideoDescription: AWSEncodableShape & AWSDecodableShape {
        /// This setting only applies to H.264, H.265, and MPEG2 outputs. Use Insert AFD signaling (AfdSignaling) to specify whether the service includes AFD values in the output video data and what those values are. * Choose None to remove all AFD values from this output. * Choose Fixed to ignore input AFD values and instead encode the value specified in the job. * Choose Auto to calculate output AFD values based on the input AFD scaler data.
        public let afdSignaling: AfdSignaling?
        /// The anti-alias filter is automatically applied to all outputs. The service no longer accepts the value DISABLED for AntiAlias. If you specify that in your job, the service will ignore the setting.
        public let antiAlias: AntiAlias?
        /// Video codec settings, (CodecSettings) under (VideoDescription), contains the group of settings related to video encoding. The settings in this group vary depending on the value that you choose for Video codec (Codec). For each codec enum that you choose, define the corresponding settings object. The following lists the codec enum, settings object pairs. * AV1, Av1Settings * AVC_INTRA, AvcIntraSettings * FRAME_CAPTURE, FrameCaptureSettings * H_264, H264Settings * H_265, H265Settings * MPEG2, Mpeg2Settings * PRORES, ProresSettings * VC3, Vc3Settings * VP8, Vp8Settings * VP9, Vp9Settings
        public let codecSettings: VideoCodecSettings?
        /// Choose Insert (INSERT) for this setting to include color metadata in this output. Choose Ignore (IGNORE) to exclude color metadata from this output. If you don't specify a value, the service sets this to Insert by default.
        public let colorMetadata: ColorMetadata?
        /// Use Cropping selection (crop) to specify the video area that the service will include in the output video frame.
        public let crop: Rectangle?
        /// Applies only to 29.97 fps outputs. When this feature is enabled, the service will use drop-frame timecode on outputs. If it is not possible to use drop-frame timecode, the system will fall back to non-drop-frame. This setting is enabled by default when Timecode insertion (TimecodeInsertion) is enabled.
        public let dropFrameTimecode: DropFrameTimecode?
        /// Applies only if you set AFD Signaling(AfdSignaling) to Fixed (FIXED). Use Fixed (FixedAfd) to specify a four-bit AFD value which the service will write on all  frames of this video output.
        public let fixedAfd: Int?
        /// Use the Height (Height) setting to define the video resolution height for this output. Specify in pixels. If you don't provide a value here, the service will use the input height.
        public let height: Int?
        /// Use Selection placement (position) to define the video area in your output frame. The area outside of the rectangle that you specify here is black.
        public let position: Rectangle?
        /// Use Respond to AFD (RespondToAfd) to specify how the service changes the video itself in response to AFD values in the input. * Choose Respond to clip the input video frame according to the AFD value, input display aspect ratio, and output display aspect ratio. * Choose Passthrough to include the input AFD values. Do not choose this when AfdSignaling is set to (NONE). A preferred implementation of this workflow is to set RespondToAfd to (NONE) and set AfdSignaling to (AUTO). * Choose None to remove all input AFD values from this output.
        public let respondToAfd: RespondToAfd?
        /// Specify how the service handles outputs that have a different aspect ratio from the input aspect ratio. Choose Stretch to output (STRETCH_TO_OUTPUT) to have the service stretch your video image to fit. Keep the setting Default (DEFAULT) to have the service letterbox your video instead. This setting overrides any value that you specify for the setting Selection placement (position) in this output.
        public let scalingBehavior: ScalingBehavior?
        /// Use Sharpness (Sharpness) setting to specify the strength of anti-aliasing. This setting changes the width of the anti-alias filter kernel used for scaling. Sharpness only applies if your output resolution is different from your input resolution. 0 is the softest setting, 100 the sharpest, and 50 recommended for most content.
        public let sharpness: Int?
        /// Applies only to H.264, H.265, MPEG2, and ProRes outputs. Only enable Timecode insertion when the input frame rate is identical to the output frame rate. To include timecodes in this output, set Timecode insertion (VideoTimecodeInsertion) to PIC_TIMING_SEI. To leave them out, set it to DISABLED. Default is DISABLED. When the service inserts timecodes in an output, by default, it uses any embedded timecodes from the input. If none are present, the service will set the timecode for the first output frame to zero. To change this default behavior, adjust the settings under Timecode configuration (TimecodeConfig). In the console, these settings are located under Job > Job settings > Timecode configuration. Note - Timecode source under input settings (InputTimecodeSource) does not affect the timecodes that are inserted in the output. Source under Job settings > Timecode configuration (TimecodeSource) does.
        public let timecodeInsertion: VideoTimecodeInsertion?
        /// Find additional transcoding features under Preprocessors (VideoPreprocessors). Enable the features at each output individually. These features are disabled by default.
        public let videoPreprocessors: VideoPreprocessor?
        /// Use Width (Width) to define the video resolution width, in pixels, for this output. If you don't provide a value here, the service will use the input width.
        public let width: Int?

        public init(afdSignaling: AfdSignaling? = nil, antiAlias: AntiAlias? = nil, codecSettings: VideoCodecSettings? = nil, colorMetadata: ColorMetadata? = nil, crop: Rectangle? = nil, dropFrameTimecode: DropFrameTimecode? = nil, fixedAfd: Int? = nil, height: Int? = nil, position: Rectangle? = nil, respondToAfd: RespondToAfd? = nil, scalingBehavior: ScalingBehavior? = nil, sharpness: Int? = nil, timecodeInsertion: VideoTimecodeInsertion? = nil, videoPreprocessors: VideoPreprocessor? = nil, width: Int? = nil) {
            self.afdSignaling = afdSignaling
            self.antiAlias = antiAlias
            self.codecSettings = codecSettings
            self.colorMetadata = colorMetadata
            self.crop = crop
            self.dropFrameTimecode = dropFrameTimecode
            self.fixedAfd = fixedAfd
            self.height = height
            self.position = position
            self.respondToAfd = respondToAfd
            self.scalingBehavior = scalingBehavior
            self.sharpness = sharpness
            self.timecodeInsertion = timecodeInsertion
            self.videoPreprocessors = videoPreprocessors
            self.width = width
        }

        public func validate(name: String) throws {
            try self.codecSettings?.validate(name: "\(name).codecSettings")
            try self.crop?.validate(name: "\(name).crop")
            try self.validate(self.fixedAfd, name: "fixedAfd", parent: name, max: 15)
            try self.validate(self.fixedAfd, name: "fixedAfd", parent: name, min: 0)
            try self.validate(self.height, name: "height", parent: name, max: 8192)
            try self.validate(self.height, name: "height", parent: name, min: 32)
            try self.position?.validate(name: "\(name).position")
            try self.validate(self.sharpness, name: "sharpness", parent: name, max: 100)
            try self.validate(self.sharpness, name: "sharpness", parent: name, min: 0)
            try self.videoPreprocessors?.validate(name: "\(name).videoPreprocessors")
            try self.validate(self.width, name: "width", parent: name, max: 8192)
            try self.validate(self.width, name: "width", parent: name, min: 32)
        }

        private enum CodingKeys: String, CodingKey {
            case afdSignaling
            case antiAlias
            case codecSettings
            case colorMetadata
            case crop
            case dropFrameTimecode
            case fixedAfd
            case height
            case position
            case respondToAfd
            case scalingBehavior
            case sharpness
            case timecodeInsertion
            case videoPreprocessors
            case width
        }
    }

    public struct VideoDetail: AWSDecodableShape {
        /// Height in pixels for the output
        public let heightInPx: Int?
        /// Width in pixels for the output
        public let widthInPx: Int?

        public init(heightInPx: Int? = nil, widthInPx: Int? = nil) {
            self.heightInPx = heightInPx
            self.widthInPx = widthInPx
        }

        private enum CodingKeys: String, CodingKey {
            case heightInPx
            case widthInPx
        }
    }

    public struct VideoPreprocessor: AWSEncodableShape & AWSDecodableShape {
        /// Enable the Color corrector (ColorCorrector) feature if necessary. Enable or disable this feature for each output individually. This setting is disabled by default.
        public let colorCorrector: ColorCorrector?
        /// Use Deinterlacer (Deinterlacer) to produce smoother motion and a clearer picture.
        public let deinterlacer: Deinterlacer?
        /// Enable Dolby Vision feature to produce Dolby Vision compatible video output.
        public let dolbyVision: DolbyVision?
        /// Enable the Image inserter (ImageInserter) feature to include a graphic overlay on your video. Enable or disable this feature for each output individually. This setting is disabled by default.
        public let imageInserter: ImageInserter?
        /// Enable the Noise reducer (NoiseReducer) feature to remove noise from your video output if necessary. Enable or disable this feature for each output individually. This setting is disabled by default.
        public let noiseReducer: NoiseReducer?
        /// If you work with a third party video watermarking partner, use the group of settings that correspond with your watermarking partner to include watermarks in your output.
        public let partnerWatermarking: PartnerWatermarking?
        /// Timecode burn-in (TimecodeBurnIn)--Burns the output timecode and specified prefix into the output.
        public let timecodeBurnin: TimecodeBurnin?

        public init(colorCorrector: ColorCorrector? = nil, deinterlacer: Deinterlacer? = nil, dolbyVision: DolbyVision? = nil, imageInserter: ImageInserter? = nil, noiseReducer: NoiseReducer? = nil, partnerWatermarking: PartnerWatermarking? = nil, timecodeBurnin: TimecodeBurnin? = nil) {
            self.colorCorrector = colorCorrector
            self.deinterlacer = deinterlacer
            self.dolbyVision = dolbyVision
            self.imageInserter = imageInserter
            self.noiseReducer = noiseReducer
            self.partnerWatermarking = partnerWatermarking
            self.timecodeBurnin = timecodeBurnin
        }

        public func validate(name: String) throws {
            try self.colorCorrector?.validate(name: "\(name).colorCorrector")
            try self.dolbyVision?.validate(name: "\(name).dolbyVision")
            try self.imageInserter?.validate(name: "\(name).imageInserter")
            try self.noiseReducer?.validate(name: "\(name).noiseReducer")
            try self.partnerWatermarking?.validate(name: "\(name).partnerWatermarking")
            try self.timecodeBurnin?.validate(name: "\(name).timecodeBurnin")
        }

        private enum CodingKeys: String, CodingKey {
            case colorCorrector
            case deinterlacer
            case dolbyVision
            case imageInserter
            case noiseReducer
            case partnerWatermarking
            case timecodeBurnin
        }
    }

    public struct VideoSelector: AWSEncodableShape & AWSDecodableShape {
        /// Ignore this setting unless this input is a QuickTime animation with an alpha channel. Use this setting to create separate Key and Fill outputs. In each output, specify which part of the input MediaConvert uses. Leave this setting at the default value DISCARD to delete the alpha channel and preserve the video. Set it to REMAP_TO_LUMA to delete the video and map the alpha channel to the luma channel of your outputs.
        public let alphaBehavior: AlphaBehavior?
        /// If your input video has accurate color space metadata, or if you don't know about color space, leave this set to the default value Follow (FOLLOW). The service will automatically detect your input color space. If your input video has metadata indicating the wrong color space, specify the accurate color space here. If your input video is HDR 10 and the SMPTE ST 2086 Mastering Display Color Volume static metadata isn't present in your video stream, or if that metadata is present but not accurate, choose Force HDR 10 (FORCE_HDR10) here and specify correct values in the input HDR 10 metadata (Hdr10Metadata) settings. For more information about MediaConvert HDR jobs, see https://docs.aws.amazon.com/console/mediaconvert/hdr.
        public let colorSpace: ColorSpace?
        /// There are two sources for color metadata, the input file and the job input settings Color space (ColorSpace) and HDR master display information settings(Hdr10Metadata). The Color space usage setting determines which takes precedence. Choose Force (FORCE) to use color metadata from the input job settings. If you don't specify values for those settings, the service defaults to using metadata from your input. FALLBACK - Choose Fallback (FALLBACK) to use color metadata from the source when it is present. If there's no color metadata in your input file, the service defaults to using values you specify in the input settings.
        public let colorSpaceUsage: ColorSpaceUsage?
        /// Use these settings to provide HDR 10 metadata that is missing or inaccurate in your input video. Appropriate values vary depending on the input video and must be provided by a color grader. The color grader generates these values during the HDR 10 mastering process. The valid range for each of these settings is 0 to 50,000. Each increment represents 0.00002 in CIE1931 color coordinate. Related settings - When you specify these values, you must also set Color space (ColorSpace) to HDR 10 (HDR10). To specify whether the the values you specify here take precedence over the values in the metadata of your input file, set Color space usage (ColorSpaceUsage). To specify whether color metadata is included in an output, set Color metadata (ColorMetadata). For more information about MediaConvert HDR jobs, see https://docs.aws.amazon.com/console/mediaconvert/hdr.
        public let hdr10Metadata: Hdr10Metadata?
        /// Use PID (Pid) to select specific video data from an input file. Specify this value as an integer; the system automatically converts it to the hexidecimal value. For example, 257 selects PID 0x101. A PID, or packet identifier, is an identifier for a set of data in an MPEG-2 transport stream container.
        public let pid: Int?
        /// Selects a specific program from within a multi-program transport stream. Note that Quad 4K is not currently supported.
        public let programNumber: Int?
        /// Use Rotate (InputRotate) to specify how the service rotates your video. You can choose automatic rotation or specify a rotation. You can specify a clockwise rotation of 0, 90, 180, or 270 degrees. If your input video container is .mov or .mp4 and your input has rotation metadata, you can choose Automatic to have the service rotate your video according to the rotation specified in the metadata. The rotation must be within one degree of 90, 180, or 270 degrees. If the rotation metadata specifies any other rotation, the service will default to no rotation. By default, the service does no rotation, even if your input video has rotation metadata. The service doesn't pass through rotation metadata.
        public let rotate: InputRotate?

        public init(alphaBehavior: AlphaBehavior? = nil, colorSpace: ColorSpace? = nil, colorSpaceUsage: ColorSpaceUsage? = nil, hdr10Metadata: Hdr10Metadata? = nil, pid: Int? = nil, programNumber: Int? = nil, rotate: InputRotate? = nil) {
            self.alphaBehavior = alphaBehavior
            self.colorSpace = colorSpace
            self.colorSpaceUsage = colorSpaceUsage
            self.hdr10Metadata = hdr10Metadata
            self.pid = pid
            self.programNumber = programNumber
            self.rotate = rotate
        }

        public func validate(name: String) throws {
            try self.hdr10Metadata?.validate(name: "\(name).hdr10Metadata")
            try self.validate(self.pid, name: "pid", parent: name, max: 2_147_483_647)
            try self.validate(self.pid, name: "pid", parent: name, min: 1)
            try self.validate(self.programNumber, name: "programNumber", parent: name, max: 2_147_483_647)
            try self.validate(self.programNumber, name: "programNumber", parent: name, min: -2_147_483_648)
        }

        private enum CodingKeys: String, CodingKey {
            case alphaBehavior
            case colorSpace
            case colorSpaceUsage
            case hdr10Metadata
            case pid
            case programNumber
            case rotate
        }
    }

    public struct VorbisSettings: AWSEncodableShape & AWSDecodableShape {
        /// Optional. Specify the number of channels in this output audio track. Choosing Mono on the console gives you 1 output channel; choosing Stereo gives you 2. In the API, valid values are 1 and 2. The default value is 2.
        public let channels: Int?
        /// Optional. Specify the audio sample rate in Hz. Valid values are 22050, 32000, 44100, and 48000. The default value is 48000.
        public let sampleRate: Int?
        /// Optional. Specify the variable audio quality of this Vorbis output from -1 (lowest quality, ~45 kbit/s) to 10 (highest quality, ~500 kbit/s). The default value is 4 (~128 kbit/s). Values 5 and 6 are approximately 160 and 192 kbit/s, respectively.
        public let vbrQuality: Int?

        public init(channels: Int? = nil, sampleRate: Int? = nil, vbrQuality: Int? = nil) {
            self.channels = channels
            self.sampleRate = sampleRate
            self.vbrQuality = vbrQuality
        }

        public func validate(name: String) throws {
            try self.validate(self.channels, name: "channels", parent: name, max: 2)
            try self.validate(self.channels, name: "channels", parent: name, min: 1)
            try self.validate(self.sampleRate, name: "sampleRate", parent: name, max: 48000)
            try self.validate(self.sampleRate, name: "sampleRate", parent: name, min: 22050)
            try self.validate(self.vbrQuality, name: "vbrQuality", parent: name, max: 10)
            try self.validate(self.vbrQuality, name: "vbrQuality", parent: name, min: -1)
        }

        private enum CodingKeys: String, CodingKey {
            case channels
            case sampleRate
            case vbrQuality
        }
    }

    public struct Vp8Settings: AWSEncodableShape & AWSDecodableShape {
        /// Target bitrate in bits/second. For example, enter five megabits per second as 5000000.
        public let bitrate: Int?
        /// If you are using the console, use the Framerate setting to specify the frame rate for this output. If you want to keep the same frame rate as the input video, choose Follow source. If you want to do frame rate conversion, choose a frame rate from the dropdown list or choose Custom. The framerates shown in the dropdown list are decimal approximations of fractions. If you choose Custom, specify your frame rate as a fraction. If you are creating your transcoding job specification as a JSON file without the console, use FramerateControl to specify which value the service uses for the frame rate for this output. Choose INITIALIZE_FROM_SOURCE if you want the service to use the frame rate from the input. Choose SPECIFIED if you want the service to use the frame rate you specify in the settings FramerateNumerator and FramerateDenominator.
        public let framerateControl: Vp8FramerateControl?
        /// Choose the method that you want MediaConvert to use when increasing or decreasing the frame rate. We recommend using drop duplicate (DUPLICATE_DROP) for numerically simple conversions, such as 60 fps to 30 fps. For numerically complex conversions, you can use interpolate (INTERPOLATE) to avoid stutter. This results in a smooth picture, but might introduce undesirable video artifacts. For complex frame rate conversions, especially if your source video has already been converted from its original cadence, use FrameFormer (FRAMEFORMER) to do motion-compensated interpolation. FrameFormer chooses the best conversion method frame by frame. Note that using FrameFormer increases the transcoding time and incurs a significant add-on cost.
        public let framerateConversionAlgorithm: Vp8FramerateConversionAlgorithm?
        /// When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example,  24000 / 1001 = 23.976 fps. Use FramerateDenominator to specify the denominator of this fraction. In this example, use 1001 for the value of FramerateDenominator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
        public let framerateDenominator: Int?
        /// When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example,  24000 / 1001 = 23.976 fps. Use FramerateNumerator to specify the numerator of this fraction. In this example, use 24000 for the value of FramerateNumerator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
        public let framerateNumerator: Int?
        /// GOP Length (keyframe interval) in frames. Must be greater than zero.
        public let gopSize: Double?
        /// Optional. Size of buffer (HRD buffer model) in bits. For example, enter five megabits as 5000000.
        public let hrdBufferSize: Int?
        /// Ignore this setting unless you set qualityTuningLevel to MULTI_PASS. Optional. Specify the maximum bitrate in bits/second. For example, enter five megabits per second as 5000000. The default behavior uses twice the target bitrate as the maximum bitrate.
        public let maxBitrate: Int?
        /// Optional. Specify how the service determines the pixel aspect ratio (PAR) for this output. The default behavior, Follow source (INITIALIZE_FROM_SOURCE), uses the PAR from your input video for your output. To specify a different PAR in the console, choose any value other than Follow source. To specify a different PAR by editing the JSON job specification, choose SPECIFIED. When you choose SPECIFIED for this setting, you must also specify values for the parNumerator and parDenominator settings.
        public let parControl: Vp8ParControl?
        /// Required when you set Pixel aspect ratio (parControl) to SPECIFIED. On the console, this corresponds to any value other than Follow source. When you specify an output pixel aspect ratio (PAR) that is different from your input video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC widescreen, you would specify the ratio 40:33. In this example, the value for parDenominator is 33.
        public let parDenominator: Int?
        /// Required when you set Pixel aspect ratio (parControl) to SPECIFIED. On the console, this corresponds to any value other than Follow source. When you specify an output pixel aspect ratio (PAR) that is different from your input video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC widescreen, you would specify the ratio 40:33. In this example, the value for parNumerator is 40.
        public let parNumerator: Int?
        /// Optional. Use Quality tuning level (qualityTuningLevel) to choose how you want to trade off encoding speed for output video quality. The default behavior is faster, lower quality, multi-pass encoding.
        public let qualityTuningLevel: Vp8QualityTuningLevel?
        /// With the VP8 codec, you can use only the variable bitrate (VBR) rate control mode.
        public let rateControlMode: Vp8RateControlMode?

        public init(bitrate: Int? = nil, framerateControl: Vp8FramerateControl? = nil, framerateConversionAlgorithm: Vp8FramerateConversionAlgorithm? = nil, framerateDenominator: Int? = nil, framerateNumerator: Int? = nil, gopSize: Double? = nil, hrdBufferSize: Int? = nil, maxBitrate: Int? = nil, parControl: Vp8ParControl? = nil, parDenominator: Int? = nil, parNumerator: Int? = nil, qualityTuningLevel: Vp8QualityTuningLevel? = nil, rateControlMode: Vp8RateControlMode? = nil) {
            self.bitrate = bitrate
            self.framerateControl = framerateControl
            self.framerateConversionAlgorithm = framerateConversionAlgorithm
            self.framerateDenominator = framerateDenominator
            self.framerateNumerator = framerateNumerator
            self.gopSize = gopSize
            self.hrdBufferSize = hrdBufferSize
            self.maxBitrate = maxBitrate
            self.parControl = parControl
            self.parDenominator = parDenominator
            self.parNumerator = parNumerator
            self.qualityTuningLevel = qualityTuningLevel
            self.rateControlMode = rateControlMode
        }

        public func validate(name: String) throws {
            try self.validate(self.bitrate, name: "bitrate", parent: name, max: 1_152_000_000)
            try self.validate(self.bitrate, name: "bitrate", parent: name, min: 1000)
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, max: 2_147_483_647)
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, min: 1)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, max: 2_147_483_647)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, min: 1)
            try self.validate(self.hrdBufferSize, name: "hrdBufferSize", parent: name, max: 47_185_920)
            try self.validate(self.hrdBufferSize, name: "hrdBufferSize", parent: name, min: 0)
            try self.validate(self.maxBitrate, name: "maxBitrate", parent: name, max: 1_152_000_000)
            try self.validate(self.maxBitrate, name: "maxBitrate", parent: name, min: 1000)
            try self.validate(self.parDenominator, name: "parDenominator", parent: name, max: 2_147_483_647)
            try self.validate(self.parDenominator, name: "parDenominator", parent: name, min: 1)
            try self.validate(self.parNumerator, name: "parNumerator", parent: name, max: 2_147_483_647)
            try self.validate(self.parNumerator, name: "parNumerator", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case bitrate
            case framerateControl
            case framerateConversionAlgorithm
            case framerateDenominator
            case framerateNumerator
            case gopSize
            case hrdBufferSize
            case maxBitrate
            case parControl
            case parDenominator
            case parNumerator
            case qualityTuningLevel
            case rateControlMode
        }
    }

    public struct Vp9Settings: AWSEncodableShape & AWSDecodableShape {
        /// Target bitrate in bits/second. For example, enter five megabits per second as 5000000.
        public let bitrate: Int?
        /// If you are using the console, use the Framerate setting to specify the frame rate for this output. If you want to keep the same frame rate as the input video, choose Follow source. If you want to do frame rate conversion, choose a frame rate from the dropdown list or choose Custom. The framerates shown in the dropdown list are decimal approximations of fractions. If you choose Custom, specify your frame rate as a fraction. If you are creating your transcoding job specification as a JSON file without the console, use FramerateControl to specify which value the service uses for the frame rate for this output. Choose INITIALIZE_FROM_SOURCE if you want the service to use the frame rate from the input. Choose SPECIFIED if you want the service to use the frame rate you specify in the settings FramerateNumerator and FramerateDenominator.
        public let framerateControl: Vp9FramerateControl?
        /// Choose the method that you want MediaConvert to use when increasing or decreasing the frame rate. We recommend using drop duplicate (DUPLICATE_DROP) for numerically simple conversions, such as 60 fps to 30 fps. For numerically complex conversions, you can use interpolate (INTERPOLATE) to avoid stutter. This results in a smooth picture, but might introduce undesirable video artifacts. For complex frame rate conversions, especially if your source video has already been converted from its original cadence, use FrameFormer (FRAMEFORMER) to do motion-compensated interpolation. FrameFormer chooses the best conversion method frame by frame. Note that using FrameFormer increases the transcoding time and incurs a significant add-on cost.
        public let framerateConversionAlgorithm: Vp9FramerateConversionAlgorithm?
        /// When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example,  24000 / 1001 = 23.976 fps. Use FramerateDenominator to specify the denominator of this fraction. In this example, use 1001 for the value of FramerateDenominator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
        public let framerateDenominator: Int?
        /// When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example,  24000 / 1001 = 23.976 fps. Use FramerateNumerator to specify the numerator of this fraction. In this example, use 24000 for the value of FramerateNumerator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
        public let framerateNumerator: Int?
        /// GOP Length (keyframe interval) in frames. Must be greater than zero.
        public let gopSize: Double?
        /// Size of buffer (HRD buffer model) in bits. For example, enter five megabits as 5000000.
        public let hrdBufferSize: Int?
        /// Ignore this setting unless you set qualityTuningLevel to MULTI_PASS. Optional. Specify the maximum bitrate in bits/second. For example, enter five megabits per second as 5000000. The default behavior uses twice the target bitrate as the maximum bitrate.
        public let maxBitrate: Int?
        /// Optional. Specify how the service determines the pixel aspect ratio for this output. The default behavior is to use the same pixel aspect ratio as your input video.
        public let parControl: Vp9ParControl?
        /// Required when you set Pixel aspect ratio (parControl) to SPECIFIED. On the console, this corresponds to any value other than Follow source. When you specify an output pixel aspect ratio (PAR) that is different from your input video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC widescreen, you would specify the ratio 40:33. In this example, the value for parDenominator is 33.
        public let parDenominator: Int?
        /// Required when you set Pixel aspect ratio (parControl) to SPECIFIED. On the console, this corresponds to any value other than Follow source. When you specify an output pixel aspect ratio (PAR) that is different from your input video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC widescreen, you would specify the ratio 40:33. In this example, the value for parNumerator is 40.
        public let parNumerator: Int?
        /// Optional. Use Quality tuning level (qualityTuningLevel) to choose how you want to trade off encoding speed for output video quality. The default behavior is faster, lower quality, multi-pass encoding.
        public let qualityTuningLevel: Vp9QualityTuningLevel?
        /// With the VP9 codec, you can use only the variable bitrate (VBR) rate control mode.
        public let rateControlMode: Vp9RateControlMode?

        public init(bitrate: Int? = nil, framerateControl: Vp9FramerateControl? = nil, framerateConversionAlgorithm: Vp9FramerateConversionAlgorithm? = nil, framerateDenominator: Int? = nil, framerateNumerator: Int? = nil, gopSize: Double? = nil, hrdBufferSize: Int? = nil, maxBitrate: Int? = nil, parControl: Vp9ParControl? = nil, parDenominator: Int? = nil, parNumerator: Int? = nil, qualityTuningLevel: Vp9QualityTuningLevel? = nil, rateControlMode: Vp9RateControlMode? = nil) {
            self.bitrate = bitrate
            self.framerateControl = framerateControl
            self.framerateConversionAlgorithm = framerateConversionAlgorithm
            self.framerateDenominator = framerateDenominator
            self.framerateNumerator = framerateNumerator
            self.gopSize = gopSize
            self.hrdBufferSize = hrdBufferSize
            self.maxBitrate = maxBitrate
            self.parControl = parControl
            self.parDenominator = parDenominator
            self.parNumerator = parNumerator
            self.qualityTuningLevel = qualityTuningLevel
            self.rateControlMode = rateControlMode
        }

        public func validate(name: String) throws {
            try self.validate(self.bitrate, name: "bitrate", parent: name, max: 480_000_000)
            try self.validate(self.bitrate, name: "bitrate", parent: name, min: 1000)
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, max: 2_147_483_647)
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, min: 1)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, max: 2_147_483_647)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, min: 1)
            try self.validate(self.hrdBufferSize, name: "hrdBufferSize", parent: name, max: 47_185_920)
            try self.validate(self.hrdBufferSize, name: "hrdBufferSize", parent: name, min: 0)
            try self.validate(self.maxBitrate, name: "maxBitrate", parent: name, max: 480_000_000)
            try self.validate(self.maxBitrate, name: "maxBitrate", parent: name, min: 1000)
            try self.validate(self.parDenominator, name: "parDenominator", parent: name, max: 2_147_483_647)
            try self.validate(self.parDenominator, name: "parDenominator", parent: name, min: 1)
            try self.validate(self.parNumerator, name: "parNumerator", parent: name, max: 2_147_483_647)
            try self.validate(self.parNumerator, name: "parNumerator", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case bitrate
            case framerateControl
            case framerateConversionAlgorithm
            case framerateDenominator
            case framerateNumerator
            case gopSize
            case hrdBufferSize
            case maxBitrate
            case parControl
            case parDenominator
            case parNumerator
            case qualityTuningLevel
            case rateControlMode
        }
    }

    public struct WavSettings: AWSEncodableShape & AWSDecodableShape {
        /// Specify Bit depth (BitDepth), in bits per sample, to choose the encoding quality for this audio track.
        public let bitDepth: Int?
        /// Specify the number of channels in this output audio track. Valid values are 1 and even numbers up to 64. For example, 1, 2, 4, 6, and so on, up to 64.
        public let channels: Int?
        /// The service defaults to using RIFF for WAV outputs. If your output audio is likely to exceed 4 GB in file size, or if you otherwise need the extended support of the RF64 format, set your output WAV file format to RF64.
        public let format: WavFormat?
        /// Sample rate in Hz.
        public let sampleRate: Int?

        public init(bitDepth: Int? = nil, channels: Int? = nil, format: WavFormat? = nil, sampleRate: Int? = nil) {
            self.bitDepth = bitDepth
            self.channels = channels
            self.format = format
            self.sampleRate = sampleRate
        }

        public func validate(name: String) throws {
            try self.validate(self.bitDepth, name: "bitDepth", parent: name, max: 24)
            try self.validate(self.bitDepth, name: "bitDepth", parent: name, min: 16)
            try self.validate(self.channels, name: "channels", parent: name, max: 64)
            try self.validate(self.channels, name: "channels", parent: name, min: 1)
            try self.validate(self.sampleRate, name: "sampleRate", parent: name, max: 192_000)
            try self.validate(self.sampleRate, name: "sampleRate", parent: name, min: 8000)
        }

        private enum CodingKeys: String, CodingKey {
            case bitDepth
            case channels
            case format
            case sampleRate
        }
    }
}
